Page MenuHomeFreeBSD

D28301.id82768.diff
No OneTemporary

D28301.id82768.diff

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

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)

Event Timeline