Skip to content

Commit

Permalink
fixed pyc uaf
Browse files Browse the repository at this point in the history
  • Loading branch information
ifyGecko authored Sep 2, 2023
1 parent abec6b1 commit 18ca843
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions librz/bin/format/pyc/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ static pyc_object *get_ascii_object_generic(RzBinPycObj *pyc, RzBuffer *buffer,
ret->data = get_bytes(buffer, size);
if (!ret->data) {
RZ_FREE(ret);
return NULL;
}

if (!add_string_to_cache(pyc, addr, ret->data, size, size, RZ_STRING_ENC_8BIT)) {
Expand Down

0 comments on commit 18ca843

Please sign in to comment.