Skip to content

Commit

Permalink
PDFBOX-5852: fix ArrayIndexOutOfBoundsException
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1920923 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lehmi committed Sep 25, 2024
1 parent 0481306 commit d9fe5fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected PatchMeshesShadingContext(PDMeshBasedShadingType shading, ColorModel c
@Override
protected int[][] calcPixelTableArray(Rectangle deviceBounds) throws IOException
{
int[][] array = new int[deviceBounds.width][deviceBounds.height];
int[][] array = new int[deviceBounds.width + 1][deviceBounds.height + 1];
int initialValue = getBackground() != null ? getRgbBackground() : -1;
for (int i = 0; i < deviceBounds.width + 1; i++)
{
Expand Down

0 comments on commit d9fe5fc

Please sign in to comment.