Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hi,

I'm running cppcheck (1.45 from sourceforge since the testing package on Debian repository is the 1.44 version) the whole project.
And i found these points :
[./build/libreoffice-3.2.99.2/berkeleydb/unxlngi6.pro/misc/build/db-4.7.25.NC/btree/bt_compact.c:1980]: (error) Array index -1 is out of bounds
=>
epg = &cp->csp[-1];

[./build/libreoffice-3.2.99.2/berkeleydb/unxlngi6.pro/misc/build/db-4.7.25.NC/btree/bt_delete.c:624]: (error) Array index -1 is out of bounds
=>
for (epg = &cp->csp[-1]; epg >= cp->sp; epg--) {

Are these bugs false positive or just typos ? I never saw an index to -1 but i don't know at all C++.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.