Skip to content

Commit 44fc861

Browse files
authored
compute ppm_in line buffer size in size_t (#432)
A large width in a PGM/PPM header wrapped num_comps * width * bytes_per_sample in ui32, so ppm_in::read fread() past the end of the undersized line buffer. Do the size math in size_t as pfm_in does.
1 parent 4962fa4 commit 44fc861

0 file changed

File tree

    0 commit comments

    Comments
     (0)