[PATCH] Fixed some "bugs" appearing through clang-analyzer

Werner Koch wk at gnupg.org
Fri Aug 24 09:14:48 CEST 2012


On Tue, 21 Aug 2012 00:36, ekleog at gmail.com said:

> Just wanted to say clang-analyser also reports an error in import.c line 247
> (err set but not used), but adding a check for "err" makes a test fail.

I checked it and figured that the called function is not robust enough.
At least the last PARSE_NEXT macro needs to be modified to accept a
number not ending with a space.  But needs to be checked against the
specs of the status line.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list