diff options
-rw-r--r-- | analyzer/pgmtexture.c | 2 | ||||
-rw-r--r-- | doc/HISTORY | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/analyzer/pgmtexture.c b/analyzer/pgmtexture.c index d14ba547..07317336 100644 --- a/analyzer/pgmtexture.c +++ b/analyzer/pgmtexture.c @@ -928,7 +928,7 @@ main (int argc, const char ** argv) { FILE * ifP; gray ** grays; - unsigned int tone[PGM_MAXMAXVAL]; + unsigned int tone[PGM_MAXMAXVAL+1]; unsigned int r0, r45, r90; unsigned int d; unsigned int x, y; diff --git a/doc/HISTORY b/doc/HISTORY index fe27396a..82708142 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -28,6 +28,9 @@ not yet BJH Release 10.66.00 ppmrelief: fix crash when input image is too small. Always broken. Thanks Prophet of the Way <afu@wta.att.ne.jp>. + pgmtexture: fix buffer overflow. Always broken. (Program + was added in primordial Netpbm in 1991). + pamdeinterlace: fix incorrect output with -takeodd and image has only one row. Always broken (pamdeinterlace was introduced in Netpbm 9.21 (January 2001)). Thanks Prophet of the Way |