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

So, Coverity knows that won't happen, so that just creates a new issue

Try untainting it in recv_hex... if that doesn't work, I'll just
have to ignore it I guess.
parent 250ff06f
No related branches found
No related tags found
No related merge requests found
......@@ -1049,8 +1049,6 @@ int zmodem_recv_nibble(zmodem_t* zm)
c -= '0';
}
if (c < 0 || c > 15)
return -1;
return c;
}
......@@ -1063,9 +1061,13 @@ int zmodem_recv_hex(zmodem_t* zm)
n1 = zmodem_recv_nibble(zm);
if (n1 < 0)
return n1;
if (n1 > 15)
return -1;
n0 = zmodem_recv_nibble(zm);
if(n0 < 0)
return n0;
if (n1 > 15)
return -1;
ret = (n1 << 4) | n0;
......
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