Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166710803
D28301.id82768.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
569 B
Referenced Files
None
Subscribers
None
D28301.id82768.diff
View Options
diff --git a/usr.bin/elfctl/elfctl.c b/usr.bin/elfctl/elfctl.c
--- a/usr.bin/elfctl/elfctl.c
+++ b/usr.bin/elfctl/elfctl.c
@@ -41,6 +41,7 @@
#include <getopt.h>
#include <libelf.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -255,7 +256,7 @@
val = strtol(feature, &eptr, 0);
if (eptr == feature || *eptr != '\0')
errno = EINVAL;
- else if (val > UINT_MAX)
+ else if ((unsigned long)val > UINT32_MAX)
errno = ERANGE;
if (errno != 0) {
warn("%s invalid", feature);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 16, 8:00 PM (2 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36833008
Default Alt Text
D28301.id82768.diff (569 B)
Attached To
Mode
D28301: Fix type errors.
Attached
Detach File
Event Timeline
Log In to Comment