From 04b789e5d69357138a6e352fd248bd1442dbab59 Mon Sep 17 00:00:00 2001 From: SaumyaKarnwal Date: Thu, 28 Dec 2023 19:00:11 +0530 Subject: [PATCH 1/2] =?UTF-8?q?fixed=20issue#750=20=C2=96ArrayIndexOutOfBo?= =?UTF-8?q?undsException?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/processing/core/PShapeSVG.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/core/PShapeSVG.java b/core/src/processing/core/PShapeSVG.java index e85389f02..5c0754a7e 100644 --- a/core/src/processing/core/PShapeSVG.java +++ b/core/src/processing/core/PShapeSVG.java @@ -543,7 +543,7 @@ protected void parsePath() { if (c == '.' && !isOnDecimal) { isOnDecimal = true; } - else if (isOnDecimal && (c < '0' || c > '9')) { + else if (isOnDecimal && (c < '0' || c > '9') && c!='e' && c!='-') { pathBuffer.append("|"); isOnDecimal = c == '.'; } From 22c09f4e20cf828fbac31dc669f151189c4e1b50 Mon Sep 17 00:00:00 2001 From: SaumyaKarnwal Date: Sun, 7 Jan 2024 12:41:35 +0530 Subject: [PATCH 2/2] fixed issue#723 --- core/src/processing/core/PImage.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/processing/core/PImage.java b/core/src/processing/core/PImage.java index d2ac4e3b9..b170ef71d 100644 --- a/core/src/processing/core/PImage.java +++ b/core/src/processing/core/PImage.java @@ -1315,7 +1315,13 @@ protected void blurARGB(float r) { ri++; read += pixelWidth; } - pixels[x+yi] = (ca/sum)<<24 | (cr/sum)<<16 | (cg/sum)<<8 | (cb/sum); + + try { + pixels[x + yi] = (ca / sum) << 24 | (cr / sum) << 16 | (cg / sum) << 8 | (cb / sum); + } catch (ArithmeticException e) { + + } + } yi += pixelWidth; ymi += pixelWidth;