Page MenuHome GnuPG

cipher.c: null pointer passed as an argument to a 'nonnull' parameter
Closed, ResolvedPublic

Description

libtool: compile: /usr/local/bin/scan-build/ccc-analyzer -DHAVE_CONFIG_H -I.
-I.. -I../src -I../src -I/usr/local/include -g3 -O1 -fvisibility=hidden -Wall
-MT cipher.lo -MD -MP -MF .deps/cipher.Tpo -c cipher.c -o cipher.o

cipher.c:155:18: warning: Null pointer passed as an argument to a 'nonnull'
parameter

if (!stricmp (oid, oid_specs[j].oid))
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../src/g10lib.h:282:23: note: expanded from macro 'stricmp'
#define stricmp(a,b) strcasecmp( (a), (b) )

^~~~~~~~~~~~~~~~~~~~~~

cipher.c:183:7: warning: Null pointer passed as an argument to a 'nonnull' parameter

if (!stricmp (oid, spec->oids[i].oid))
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../src/g10lib.h:282:23: note: expanded from macro 'stricmp'
#define stricmp(a,b) strcasecmp( (a), (b) )

^~~~~~~~~~~~~~~~~~~~~~

2 warnings generated.

Details

Version
1.6.3

Event Timeline

JW added projects: libgcrypt, Bug Report.
JW added a subscriber: JW.
werner claimed this task.
werner added a project: Mistaken.

No c+p of warnings please! Use gnupg-devel for such things.