ecc-curves.c: dereference of null pointer
Closed, ResolvedPublic


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 ecc-curves.lo -MD -MP -MF .deps/ecc-curves.Tpo -c ecc-curves.c -o ecc-curves.o

ecc-curves.c:1020:12: warning: Access to field 'y' results in a dereference of a
null pointer (loaded from field 'G')

return mpi_is_const (ec->G->y) && !copy? ec->Q->y : mpi_copy (ec->Q->y);

../src/mpi.h:112:32: note: expanded from macro 'mpi_is_const'
#define mpi_is_const(a) ((a) && ((a)->flags&32))


1 warning generated.


JW set Version to 1.6.3.Mar 6 2015, 9:02 AM
JW added projects: gpgrt, Bug Report.
JW added a subscriber: JW.
werner closed this task as Resolved.Mar 10 2015, 9:31 AM
werner claimed this task.
werner added a project: Mistaken.

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