WRaster: Stop parsing number in PPM file if invalid syntax is found
commitd125f80dee009c1297cc63e4209f78c4524e7d9a
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 16 May 2021 13:47:08 +0000 (16 15:47 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 18 May 2021 16:49:17 +0000 (18 17:49 +0100)
tree58eedf2eddc25bf1251121ac69d6195b0b40fec1
parent8e47ca8e62b3dabbe97ddb46c6cd072dba07daf6
WRaster: Stop parsing number in PPM file if invalid syntax is found

When the function 'pm_getuint' is reading a number, it prints an error
message if it encounters a non-digit number, yet it still enters the
processing loop which will cause an invalid number to be calculated.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
wrlib/load_ppm.c