Skip to content

Commit

Permalink
Fixed ArrayIndexOutOfBoundsException for DXT5 PNG decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
eaxvac committed Jun 3, 2018
1 parent 745c9ff commit 9954f03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions MapleLib/WzLib/WzProperties/WzPngProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -533,11 +533,11 @@ private static byte[] GetPixelDataDXT5(byte[] rawData, int width, int height)
for (int i = 0; i < 4; i++)
{
SetPixel(pixel,
x + i,
y + j,
width,
colorTable[colorIdxTable[j * 4 + i]],
alphaTable[j * 4 + i]);
x + i,
y + j,
width,
colorTable[colorIdxTable[j * 4 + i]],
alphaTable[alphaIdxTable[j * 4 + i]]);
}
}
}
Expand Down

0 comments on commit 9954f03

Please sign in to comment.