Actions
Bug #3145
closedscan-build warning for af-packet
Affected Versions:
Effort:
Difficulty:
Label:
Description
CC source-af-packet.o
source-af-packet.c:1961:24: warning: Result of 'malloc' is converted to a pointer of type 'char', which is incompatible with sizeof operand type 'union thdr *'
ptv->ring.v2 = SCMalloc(ptv->req.v2.tp_frame_nr * sizeof (union thdr *));
^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
./util-mem.h:37:18: note: expanded from macro 'SCMalloc'
#define SCMalloc malloc
^~~~~~
1 warning generated.
Actions