Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch Heap overflow #255

Merged
merged 2 commits into from Jul 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev
patch two stack buffer overflow. In disassembling swf function
  • Loading branch information
정재영 committed Jul 2, 2020
commit 4a8b24475549ff10bdf6d07fd4b5f6c1cc6246ea
4 changes: 2 additions & 2 deletions libr/asm/arch/swf/swfdis.c
Expand Up @@ -162,7 +162,7 @@ int r_asm_swf_disass(RBinObject *obj, char* buf_asm, const ut8* buf, int len, ut
}
case SWFACTION_GETURL: {
char* url = (char*) buf+1;
sprintf (buf_asm, "%s %s", op.name, url);
snprintf (buf_asm, 1024,"%s %s", op.name, url);
dlen = strlen (url) + 2;
break;
}
Expand Down Expand Up @@ -203,7 +203,7 @@ int r_asm_swf_disass(RBinObject *obj, char* buf_asm, const ut8* buf, int len, ut
}
case SWFACTION_SETTARGET: {
char* target = (char*) buf+1;
sprintf (buf_asm, "%s %s", op.name, target);
sprintf (buf_asm, 1024,"%s %s", op.name, target);
dlen = 1;
break;
}
Expand Down