Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F141980911
D54452.id.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.id.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
Thu, Jan 15, 11:45 AM (3 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27471622
Default Alt Text
D54452.id.diff (588 B)
Attached To
Mode
D54452: libgeom: Fix segfault in 32-on-64 case
Attached
Detach File
Event Timeline
Log In to Comment