Page MenuHome GnuPG

der-encoder.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 der-encoder.lo -MD -MP -MF .deps/der-encoder.Tpo -c
der-encoder.c -o der-encoder.o
der-encoder.c:523:7: warning: Access to field 'type' results in a dereference of
a null pointer (loaded from variable 'root')

if (root->type == TYPE_NULL)
    ^~~~~~~~~~

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 a null pointer to der-encoder.c: dereference of null pointer.Mar 6 2015, 8:36 AM
werner claimed this task.
werner added a project: Mistaken.

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