found a bug in gmp-4.2.4

Martin Ettl ettl.martin at gmx.de
Sun Mar 22 22:22:59 CET 2009


Hi friends,

i have checked the gmp-4.2.4 source with a static code analyis tool (cppcheck). It brought up an issue in file /mpz/export.c at line 66.

I used the following command:
cppcheck -q -a -j2 -f gmp-4.2.4/
output:
[./mpz/export.c:66]: (error) Wrong assignement of an auto-variable to an effective parameter of a function

The code, the code analysis tool complains about:
  if (countp == NULL)
    countp = &dummy;

Best regards

Ettl Martin




-- 
Aufgepasst: Sind Ihre Daten beim Online-Banking auch optimal geschützt?
Jetzt absichern: https://homebanking.gmx.net/?mc=mail@footer.hb


More information about the gmp-bugs mailing list