mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-30 01:44:50 +00:00
Fix CID 1134594
And add a check to prevent NULL dereference
This commit is contained in:
parent
aa6476afdf
commit
bc8fb000c9
@ -21,8 +21,11 @@ memri 01 10 r3 11 x32
|
||||
imm 0011 x32
|
||||
*/
|
||||
static int assemble_arg(Bitbuf *b, char *a) {
|
||||
printf ("A = (%s)\n", a);
|
||||
int r = getreg (a);
|
||||
printf ("A = (%s)\n", a);
|
||||
int r;
|
||||
if (!a)
|
||||
return 1;
|
||||
r = getreg (a);
|
||||
if (r != -1) {
|
||||
bitadd (b, 1, 1);
|
||||
bitadd (b, r, 3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user