Page MenuHome GnuPG

name.c: dereference of null pointer
Closed, ResolvedPublic

Description

libtool: compile: /usr/local/bin/scan-build/ccc-analyzer -DHAVE_CONFIG_H -I.
-I.. -I../gl -I../gl -I/home/jwalton/gpg-analyze/include -g3 -O1 -Wall
-Wcast-align -Wshadow -Wstrict-prototypes -Wpointer-arith -Wno-pointer-sign
-fvisibility=hidden -MT name.lo -MD -MP -MF .deps/name.Tpo -c name.c -o name.o
name.c:90:5: warning: Array access (via field 'names') results in a null pointer
dereference

xfree (name->names[i]);
^~~~~~~~~~~~~~~~~~~~~~

./util.h:57:36: note: expanded from macro 'xfree'
#define xfree(a) ksba_free((a))

^~~

1 warning generated.

Details

Version
1.3.2

Event Timeline

JW set Version to 1.3.2.
JW added a subscriber: JW.
JW renamed this task from Dereference of null pointer to name.c: dereference of null pointer.Mar 6 2015, 8:35 AM

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

werner claimed this task.
werner added a project: Mistaken.