basic.c: function call argument is an uninitialized value
Closed, ResolvedPublic

Description

libtool: link: /usr/local/bin/scan-build/ccc-analyzer -I/usr/local/include -g3
-O1 -fvisibility=hidden -Wall -o prime prime.o ../src/.libs/libgcrypt.a
-L/usr/local/lib ../compat/.libs/libcompat.a /usr/local/lib/libgpg-error.so
/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 basic.o -MD
-MP -MF .deps/basic.Tpo -c -o basic.o basic.c

basic.c:5497:8: warning: Value stored to 'hint_len' is never read

hint_len = gcry_sexp_new (&list, datas[dataidx].hint,
^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

basic.c:5516:8: warning: Null pointer passed as an argument to a 'nonnull' parameter

memmove (buf + 10 + hint_len, buf + 10, len - 10);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

basic.c:5517:8: warning: Null pointer passed as an argument to a 'nonnull' parameter

memcpy (buf + 10, hint, hint_len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

basic.c:5638:3: warning: Function call argument is an uninitialized value

do_check_one_pubkey (n, skey, pkey,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

4 warnings generated.

Details

Version
1.6.3
JW set Version to 1.6.3.
JW added a subscriber: JW.
werner closed this task as Resolved.Mar 10 2015, 9:16 AM
werner claimed this task.
werner added a project: Mistaken.

No c+p of warnings please.