Page MenuHome GnuPG

malloc for 0 bytes
Closed, ResolvedPublic

Description

libtool: compile: /usr/local/bin/scan-build/ccc-analyzer -DHAVE_CONFIG_H -I.
-I.. -DLOCALEDIR=\"/home/jwalton/gpg-analyze/share/locale\" -g3 -O1 -Wall
-Wpointer-arith -fvisibility=hidden -MT libgpg_error_la-init.lo -MD -MP -MF
.deps/libgpg_error_la-init.Tpo -c init.c -o libgpg_error_la-init.o
init.c:175:12: warning: Call to 'malloc' has an allocation size of 0 bytes

return malloc (n);
       ^~~~~~~~~~

1 warning generated.

Details

Version
1.18

Event Timeline

JW added projects: gpgrt, Bug Report.
JW added a subscriber: JW.

So what? This is a wrapper for malloc thus it calles malloc with the args given
by the user.

werner claimed this task.
werner added a project: Not A Bug.