forked from pool/netpbm
Petr Gajdos
20145d3c7b
* asciitopgm: fix bug: memory corruption on too-long lines. * asciitopgm: fix bug: improper handling of blank lines. * pngtopnm: fix bug: -verbose reports history chunk present when it's really a palette. * bmptopnm: Don't crash on invalid zero value of image height in the BMP header of a compressed file. * bmptopnm: don't crash on large invalid value of 'colorsused' in the BMP header. * ilbmtoppm: Don't crash on image that has a transparent color index, but no color map. OBS-URL: https://build.opensuse.org/package/show/graphics/netpbm?expand=0&rev=29
12 lines
307 B
Diff
12 lines
307 B
Diff
--- editor/pamscale.c
|
|
+++ editor/pamscale.c
|
|
@@ -595,6 +595,8 @@
|
|
const char *filterOpt, *window;
|
|
unsigned int filterSpec, windowSpec;
|
|
|
|
+ memset(cmdlineP, 0, sizeof(struct cmdlineInfo));
|
|
+
|
|
MALLOCARRAY_NOFAIL(option_def, 100);
|
|
|
|
option_def_index = 0; /* incremented by OPTENT3 */
|