Skip to content

Commit

Permalink
Fix huge allocation when casting int to ut64 ##crash
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jun 30, 2024
1 parent 8e3a872 commit bbd4ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/main/rasm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static ut64 pcpos(const char* buf) {
static int rasm_disasm(RAsmState *as, ut64 addr, const char *buf, int len, int bits, int bin, int hex) {
ut8 *data = NULL;
int ret = 0;
ut64 clen = 0;
st64 clen = 0;
if (bits == 1) {
len /= 8;
}
Expand Down

0 comments on commit bbd4ad0

Please sign in to comment.