r3263 - glibc-package/branches/glibc-2.9/debian/patches/any
Author: sthibaul-guest
Date: 2009-01-29 02:05:22 +0000 (Thu, 29 Jan 2009)
New Revision: 3263
Modified:
glibc-package/branches/glibc-2.9/debian/patches/any/local-nss-overflow.diff
Log:
any/local-nss-overflow.diff: Include <limits.h> to get UINT_MAX.
Modified: glibc-package/branches/glibc-2.9/debian/patches/any/local-nss-overflow.diff
===================================================================
--- glibc-package/branches/glibc-2.9/debian/patches/any/local-nss-overflow.diff 2009-01-28 23:31:24 UTC (rev 3262)
+++ glibc-package/branches/glibc-2.9/debian/patches/any/local-nss-overflow.diff 2009-01-29 02:05:22 UTC (rev 3263)
@@ -1,16 +1,24 @@
2009-01-12 Arthur Loiret <aloiret@debian.org>
- nss/nss_files/files-parse.c (INT_FIELD): Convert field to uintmax_t
- and check for 32-bit overflow.
+ nss/nss_files/files-parse.c: Include <limits.h>.
+ (INT_FIELD): Convert field to uintmax_t and check for 32-bit overflow.
(INT_FIELD_MAYBE_NULL): Likewise.
---
- nss/nss_files/files-parse.c | 14 ++++++++++++--
+ nss/nss_files/files-parse.c | 15 +++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
--- a/nss/nss_files/files-parse.c
+++ b/nss/nss_files/files-parse.c
-@@ -144,7 +144,12 @@
+@@ -21,6 +21,7 @@
+ #include <errno.h>
+ #include <string.h>
+ #include <stdlib.h>
++#include <limits.h>
+
+ /* These symbols are defined by the including source file:
+
+@@ -144,7 +145,12 @@
# define INT_FIELD(variable, terminator_p, swallow, base, convert) \
{ \
char *endp; \
@@ -24,7 +32,7 @@
if (endp == line) \
return 0; \
else if (terminator_p (*endp)) \
-@@ -159,10 +164,15 @@
+@@ -159,10 +165,15 @@
# define INT_FIELD_MAYBE_NULL(variable, terminator_p, swallow, base, convert, default) \
{ \
char *endp; \
Reply to: