mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
fixed alloc errors, code format
This commit is contained in:
@ -358,8 +358,8 @@ int recv_testcase(int s, void **buf) {
|
||||
|
||||
if ((size & 0xff000000) != 0xff000000) {
|
||||
|
||||
*buf = afl_realloc((void **)&buf, size);
|
||||
if (unlikely(!buf)) { PFATAL("Alloc"); }
|
||||
*buf = afl_realloc(buf, size);
|
||||
if (unlikely(!*buf)) { PFATAL("Alloc"); }
|
||||
received = 0;
|
||||
// fprintf(stderr, "unCOMPRESS (%u)\n", size);
|
||||
while (received < size &&
|
||||
@ -371,8 +371,8 @@ int recv_testcase(int s, void **buf) {
|
||||
#ifdef USE_DEFLATE
|
||||
u32 clen;
|
||||
size -= 0xff000000;
|
||||
*buf = afl_realloc((void **)&buf, size);
|
||||
if (unlikely(!buf)) { PFATAL("Alloc"); }
|
||||
*buf = afl_realloc(buf, size);
|
||||
if (unlikely(!*buf)) { PFATAL("Alloc"); }
|
||||
received = 0;
|
||||
while (received < 4 &&
|
||||
(ret = recv(s, &clen + received, 4 - received, 0)) > 0)
|
||||
|
Reference in New Issue
Block a user