Browse Source

Fix #482

Former-commit-id: a0e895673c782f6e5a92d26beee40b51d41bfc38
Former-commit-id: 6e8acc83f0511b8d1d437209676ed62c649b32af
Former-commit-id: c5764b5a8c52fa943ae6db2d09bf2e83257fb8c9
pull/1/head
James Jackson-South 10 years ago
parent
commit
c04a32ae4a
  1. 4
      src/ImageProcessorCore/Formats/Bmp/BmpDecoderCore.cs

4
src/ImageProcessorCore/Formats/Bmp/BmpDecoderCore.cs

@ -103,8 +103,8 @@ namespace ImageProcessorCore.Formats
if (colorMapSize > 0)
{
// 255 * 4
if (colorMapSize > 1020)
// 256 * 4
if (colorMapSize > 1024)
{
throw new ImageFormatException($"Invalid bmp colormap size '{colorMapSize}'");
}

Loading…
Cancel
Save