Skip to content
Snippets Groups Projects
Commit a98f8a44 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix a memory leak and an allowed out-of-bounds access.

Thanks Coverity!
parent a8a2f090
Branches
Tags
No related merge requests found
Pipeline #7737 passed
...@@ -11590,7 +11590,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs) ...@@ -11590,7 +11590,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
handled = true; handled = true;
arg1 = parse_mega(&args[0], 2); arg1 = parse_mega(&args[0], 2);
arg2 = parse_mega(&args[2], 2); arg2 = parse_mega(&args[2], 2);
if ((arg1 < 0) || (arg1 > 255)) if ((arg1 < 0) || (arg1 > 15))
break; break;
if ((arg2 < 0) || (arg2 > 63)) if ((arg2 < 0) || (arg2 > 63))
break; break;
...@@ -14934,6 +14934,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs) ...@@ -14934,6 +14934,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
break; break;
} }
suspend_rip(false); suspend_rip(false);
free(uldir);
} }
break; break;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment