Hi! I found heap-buffer-overflow ( occurs at net/packetdrill/ip.h:99 ) during testing with libFuzzer.
Perhaps to fix the error, you can try to change the code in net/packetdrill/packet_parser.c:211 to
struct ipv4 *ipv4 = (struct ipv4 *) malloc(sizeof(struct ipv4)); memcpy(ipv4, header_start, sizeof(struct ipv4));
Hi! I found heap-buffer-overflow ( occurs at net/packetdrill/ip.h:99 ) during testing with libFuzzer. Perhaps to fix the error, you can try to change the code in net/packetdrill/packet_parser.c:211 to
struct ipv4 *ipv4 = (struct ipv4 *) malloc(sizeof(struct ipv4));
memcpy(ipv4, header_start, sizeof(struct ipv4));