Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152992765
D54452.id168874.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
588 B
Referenced Files
None
Subscribers
None
D54452.id168874.diff
View Options
diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c
--- a/lib/libgeom/geom_xml2tree.c
+++ b/lib/libgeom/geom_xml2tree.c
@@ -76,10 +76,10 @@
ref = NULL;
for (i = 0; attr[i] != NULL; i += 2) {
if (!strcmp(attr[i], "id")) {
- id = (void *)strtoul(attr[i + 1], NULL, 0);
+ id = (void *)strtoumax(attr[i + 1], NULL, 0);
mt->nident++;
} else if (!strcmp(attr[i], "ref")) {
- ref = (void *)strtoul(attr[i + 1], NULL, 0);
+ ref = (void *)strtoumax(attr[i + 1], NULL, 0);
} else
printf("%*.*s[%s = %s]\n",
mt->level + 1, mt->level + 1, "",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 12:42 PM (1 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31770579
Default Alt Text
D54452.id168874.diff (588 B)
Attached To
Mode
D54452: libgeom: Fix segfault in 32-on-64 case
Attached
Detach File
Event Timeline
Log In to Comment