mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 00:51:19 +00:00
Fix Segmentation fault in io_zip for IPA files (#9262)
This commit is contained in:
parent
d6047b24ff
commit
9d359653dd
@ -391,7 +391,7 @@ static RIODesc *r_io_zip_open(RIO *io, const char *file, int rw, int mode) {
|
||||
const char *slash = r_str_rchr (name, bin_name, '/');
|
||||
if (slash) {
|
||||
bin_name = r_str_ndup (slash + 1, (bin_name - slash) -1);
|
||||
char *chkstr = r_str_newf ("Payload/%s.app/%s", bin_name);
|
||||
char *chkstr = r_str_newf ("Payload/%s.app/%s", bin_name, bin_name);
|
||||
if (!strcmp (name, chkstr)) {
|
||||
zip_filename = r_str_newf ("//%s", chkstr);
|
||||
free (chkstr);
|
||||
|
Loading…
Reference in New Issue
Block a user