tsexp.c: null pointer passed as an argument to a 'nonnull' parameter
Closed, ResolvedPublic

Description

libtool: link: /usr/local/bin/scan-build/ccc-analyzer -I/usr/local/include -g3
-O1 -fvisibility=hidden -Wall -o mpitests mpitests.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 tsexp.o -MD
-MP -MF .deps/tsexp.Tpo -c -o tsexp.o tsexp.c

tsexp.c:188:12: warning: The right operand of '!=' is a garbage value

if (alen != blen)
         ^  ~~~~

tsexp.c:190:9: warning: Null pointer passed as an argument to a 'nonnull' parameter

res = memcmp (a, bbuf, alen);
      ^~~~~~~~~~~~~~~~~~~~~~

2 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.
werner claimed this task.

The warning is BS. BLEN has just ben set by hex2buffer.