mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
m4: Fix OOB access displaying MIN_INT
Previously displaying INT_MIN resulted in an out of bounds access to digits[-8]. In twos-complement -INT_MIN is still negative. PR: 287013 Reviewed by: emaste
This commit is contained in:
parent
ac196a5845
commit
ab4edcd552
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ void
|
|||
pbnumbase(int n, int base, int d)
|
||||
{
|
||||
static char digits[36] = "0123456789abcdefghijklmnopqrstuvwxyz";
|
||||
int num;
|
||||
unsigned int num;
|
||||
int printed = 0;
|
||||
|
||||
if (base > 36)
|
||||
|
|
|
|||
Loading…
Reference in a new issue