mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-30 16:40:57 +00:00
Fix huge allocation when casting int to ut64 ##crash
This commit is contained in:
parent
8e3a87264f
commit
bbd4ad0dd2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user