From 18ca843c7ce00465bfb114b8c3aa430b10ad8206 Mon Sep 17 00:00:00 2001 From: ifyGecko <26214995+ifyGecko@users.noreply.github.com> Date: Sat, 2 Sep 2023 14:00:31 -0400 Subject: [PATCH] fixed pyc uaf --- librz/bin/format/pyc/marshal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/librz/bin/format/pyc/marshal.c b/librz/bin/format/pyc/marshal.c index c7e6f03913e..2727ed82012 100644 --- a/librz/bin/format/pyc/marshal.c +++ b/librz/bin/format/pyc/marshal.c @@ -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)) {