[gmx-developers] jenkins cppcheck picky?
erik.lindahl at scilifelab.se
Sat Aug 31 21:53:43 CEST 2013
That "bad" glibc version is probably still around on some platforms, so it seems like a better idea to just add a field limit?
Although I have no idea what file you are reading here, file I/O is a big culprit where we are usually not checking the input carefully enough!
On Aug 31, 2013, at 9:33 PM, David van der Spoel <spoel at xray.bmc.uu.se> wrote:
> I'm getting complaints in jenkins from cppcheck, for code like
> int d;
> fscanf(fp, "%d", &d);
> scanf without field width limits can crash with huge input data
> Apparently this is a check for an old glibc or something:
> Can we upgrade cppcheck?
> David van der Spoel, Ph.D., Professor of Biology
> Dept. of Cell & Molec. Biol., Uppsala University.
> Box 596, 75124 Uppsala, Sweden. Phone: +46184714205.
> spoel at xray.bmc.uu.se http://folding.bmc.uu.se
> gmx-developers mailing list
> gmx-developers at gromacs.org
> Please don't post (un)subscribe requests to the list. Use the www interface or send it to gmx-developers-request at gromacs.org.
More information about the gromacs.org_gmx-developers