Page MenuHome GnuPG

ecc-curves.c: dereference of null pointer
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 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.

Details

Version
1.6.3

Event Timeline

JW added projects: gpgrt, 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.