Skip to content
Snippets Groups Projects
Commit 80657a60 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix CID 33289: Dereference null return value

parent 55670597
No related branches found
No related tags found
No related merge requests found
......@@ -1861,11 +1861,12 @@ void decompile(FILE *bin, FILE *srcfile)
break;
case CS_COMPARE_ARS:
fread(&uch,1,1,bin);
p=(char *)malloc(uch);
fread(p,uch,1,bin);
WRITE_NAME("COMPARE_ARS");
sprintf(strchr(src,0),"%s\n",decompile_ars((uchar*)p,uch));
free(p);
if((p=(char *)malloc(uch)) != NULL) {
fread(p,uch,1,bin);
WRITE_NAME("COMPARE_ARS");
sprintf(strchr(src,0),"%s\n",decompile_ars((uchar*)p,uch));
free(p);
}
break;
case CS_TOGGLE_USER_MISC:
MLNG("TOGGLE_USER_MISC");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment