diff options
| author | Julien Nabet <serval2412@yahoo.fr> | 2018-09-25 19:58:06 +0000 |
|---|---|---|
| committer | Julien Nabet <serval2412@yahoo.fr> | 2018-09-25 19:58:10 +0000 |
| commit | 42ca25f597bc6158477002071f38f85834fa4f79 (patch) | |
| tree | 2a43fa00d9d7c5e91275063e86b91381787cd469 /src/util/ziptool.cpp | |
| parent | cppcheck: fix Same expression in font-variants (diff) | |
| download | inkscape-42ca25f597bc6158477002071f38f85834fa4f79.tar.gz inkscape-42ca25f597bc6158477002071f38f85834fa4f79.zip | |
cppcheck: out of bounds ziptool
[util/ziptool.cpp:1235]: (error) Array 'lenBases[29]' accessed at index 29, which is out of bounds.
[util/ziptool.cpp:1236]: (error) Array 'lenBases[29]' accessed at index 29, which is out of bounds.
Diffstat (limited to 'src/util/ziptool.cpp')
| -rw-r--r-- | src/util/ziptool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/ziptool.cpp b/src/util/ziptool.cpp index 7f2654876..fc13b836f 100644 --- a/src/util/ziptool.cpp +++ b/src/util/ziptool.cpp @@ -1230,7 +1230,7 @@ void Deflater::encodeDistStatic(unsigned int len, unsigned int dist) } bool found = false; - for (int i=0 ; i<30 ; i++) + for (int i=0 ; i<29 ; i++) { unsigned int base = lenBases[i].base; unsigned int range = lenBases[i].range; |
