diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-02-25 03:11:59 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-02-25 03:11:59 +0000 |
commit | a5fd4f7b5501df5ae1f692509617fb0c6a736b0e (patch) | |
tree | aecd111d890f3eca6abd121b9864c19d9e2fd488 /analyzer | |
parent | 60e637828328cb6e340997672819616ddf02c379 (diff) | |
download | netpbm-mirror-a5fd4f7b5501df5ae1f692509617fb0c6a736b0e.tar.gz netpbm-mirror-a5fd4f7b5501df5ae1f692509617fb0c6a736b0e.tar.xz netpbm-mirror-a5fd4f7b5501df5ae1f692509617fb0c6a736b0e.zip |
Fix buffer overrun
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2138 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer')
-rw-r--r-- | analyzer/pgmtexture.c | 2 |
1 files changed, 1 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; |