We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6af8639 commit 66a8e47Copy full SHA for 66a8e47
1 file changed
cups/snmp.c
@@ -509,13 +509,18 @@ _cupsSNMPStringToOID(const char *src, /* I - OID string */
509
*src && dstptr < dstend;
510
src ++)
511
{
512
- if (*src == '.')
+ if (*src == '.' && src[1])
513
514
dstptr ++;
515
*dstptr = 0;
516
}
517
else if (isdigit(*src & 255))
518
+ {
519
+ if ((*dstptr * 10 + *src - '0') > 0xffff)
520
+ break;
521
+
522
*dstptr = *dstptr * 10 + *src - '0';
523
+ }
524
else
525
break;
526
0 commit comments