From c5b495c8a3a32619dd010e93cee11041fbcf9c3a Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Sun, 4 Jul 2021 16:15:24 +0200
Subject: [PATCH] Fixing overflow in GoogleChart

---
 src/Plot/GoogleChart.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Plot/GoogleChart.hpp b/src/Plot/GoogleChart.hpp
index b35bab5..ef0a9af 100644
--- a/src/Plot/GoogleChart.hpp
+++ b/src/Plot/GoogleChart.hpp
@@ -366,7 +366,7 @@ class GoogleChart
 			   X & y,
 			   Xs& ... xy)
 	{
-		if (low == x.get(counters[0]))
+		if (counters[0] < x.size() && low == x.get(counters[0]))
 		{
 			point[0] = y.get(counters[0]);
 			counters[0]++;
-- 
GitLab