You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-freebsd/freebsd-lib/files/freebsd-lib-7.0-CVE-2008-13...

12 lines
344 B

--- lib/libc/stdlib/strfmon.c 2008/04/22 13:23:34
+++ lib/libc/stdlib/strfmon.c 2008/04/24 07:49:00
@@ -65,6 +65,8 @@
#define GET_NUMBER(VAR) do { \
VAR = 0; \
while (isdigit((unsigned char)*fmt)) { \
+ if (VAR > INT_MAX / 10) \
+ goto e2big_error; \
VAR *= 10; \
VAR += *fmt - '0'; \
if (VAR < 0) \