mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-19 13:03:44 +00:00
fix some compiler warnings in 32-bit linux
This commit is contained in:
@ -44,8 +44,9 @@ static void gum_afl_stalker_backpatcher_notify(GumStalkerObserver *self,
|
||||
sizeof(prefetch_data->backpatch_data) - prefetch_data->backpatch_size;
|
||||
if (sizeof(gsize) + size > remaining) { return; }
|
||||
|
||||
*(gsize *)(&prefetch_data->backpatch_data[prefetch_data->backpatch_size]) =
|
||||
size;
|
||||
gsize *dst_backpatch_size = (gsize *)
|
||||
&prefetch_data->backpatch_data[prefetch_data->backpatch_size];
|
||||
*dst_backpatch_size = size;
|
||||
prefetch_data->backpatch_size += sizeof(gsize);
|
||||
|
||||
memcpy(&prefetch_data->backpatch_data[prefetch_data->backpatch_size],
|
||||
@ -115,7 +116,8 @@ static void prefetch_read_patches(void) {
|
||||
remaining > sizeof(gsize);
|
||||
remaining = prefetch_data->backpatch_size - offset) {
|
||||
|
||||
gsize size = *(gsize *)(&prefetch_data->backpatch_data[offset]);
|
||||
gsize *src_backpatch_data = (gsize *)&prefetch_data->backpatch_data[offset];
|
||||
gsize size = *src_backpatch_data;
|
||||
offset += sizeof(gsize);
|
||||
|
||||
if (prefetch_data->backpatch_size - offset < size) {
|
||||
|
Reference in New Issue
Block a user