ecc-eddsa.c: function call argument is an uninitialized value
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-eddsa.lo -MD -MP -MF .deps/ecc-eddsa.Tpo -c ecc-eddsa.c -o ecc-eddsa.o

ecc-eddsa.c:607:9: warning: Function call argument is an uninitialized value

log_printhex ("* e_pk", encpk, encpklen);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../src/g10lib.h:185:22: note: expanded from macro 'log_printhex'
#define log_printhex _gcry_log_printhex

^

ecc-eddsa.c:659:16: warning: Assigned value is garbage or undefined

hvec[1].len  = encpklen;
             ^ ~~~~~~~~

ecc-eddsa.c:754:5: warning: Function call argument is an uninitialized value

log_printhex ("  e_pk", encpk, encpklen);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../src/g10lib.h:185:22: note: expanded from macro 'log_printhex'
#define log_printhex _gcry_log_printhex

^

ecc-eddsa.c:755:16: warning: The left operand of '!=' is a garbage value

if (encpklen != b)
    ~~~~~~~~ ^

ecc-eddsa.c:822:12: warning: The left operand of '!=' is a garbage value

if (tlen != rlen || memcmp (tbuf, rbuf, tlen))
    ~~~~ ^

5 warnings generated.

Details

Version
1.6.3
JW set Version to 1.6.3.
JW added a subscriber: JW.
werner added a subscriber: werner.Mar 10 2015, 9:18 AM

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

werner closed this task as Resolved.Mar 10 2015, 9:18 AM
werner claimed this task.
werner added a project: Mistaken.