FLIF-hub / FLIF

Free Lossless Image Format
Other
3.72k stars 229 forks source link

Fixes for reading malformed/truncated PAM files #532

Closed d11mshepcar closed 2 years ago

d11mshepcar commented 5 years ago

I've fixed two problems in the PAM reader relating to reading past EOF and reading pixel values outside of the maximum range. This fixes issue #513

charmander commented 5 years ago

Indentation appears to be spaces.

d11mshepcar commented 5 years ago

Indentation appears to be spaces.

The formatting is all over the place anyway but I've updated my commit to be in line with surrounding code.