We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaafda4 commit cfde871Copy full SHA for cfde871
ipthelper/xshared.c
@@ -1,3 +1,7 @@
1
+#ifndef _GNU_SOURCE
2
+#define _GNU_SOURCE 1
3
+#endif
4
+
5
#include <ctype.h>
6
#include <getopt.h>
7
#include <errno.h>
@@ -64,7 +68,13 @@ static bool xs_option_name_pointer_is_valid(const char *name)
64
68
#else
65
69
static bool xs_option_name_pointer_is_valid(const char *name)
66
70
{
67
- (void)name;
71
+ if (name == NULL)
72
+ return true;
73
74
+#if INTPTR_MAX > 0xffffffff
75
+ if ((uintptr_t)name < 0x100000000ULL)
76
+ return false;
77
78
return true;
79
}
80
#endif
0 commit comments