Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 52739 Details for
Bug 84214
shared-mime-info: Fix bug 1506 & 1507, causing wrong mime types on AMD64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
FIX_BUG_1506.patch
shared-mime-info-0.15-FIX_BUG_1506.patch (text/plain), 1.68 KB, created by
Johan Christiansen
on 2005-03-05 12:04:33 UTC
(
hide
)
Description:
FIX_BUG_1506.patch
Filename:
MIME Type:
Creator:
Johan Christiansen
Created:
2005-03-05 12:04:33 UTC
Size:
1.68 KB
patch
obsolete
>--- update-mime-database.c 26 Nov 2004 22:13:04 -0000 1.32 >+++ update-mime-database.c 26 Nov 2004 22:20:39 -0000 >@@ -840,7 +840,14 @@ > unsigned long value; > int b; > >- value = strtol(in, &end, 0); >+ value = strtoul(in, &end, 0); >+ if (errno == ERANGE) { >+ g_set_error(error, MIME_ERROR, 0, >+ "Number out-of-range (%s should fit in %d bytes)", >+ in, bytes); >+ return; >+ } >+ > if (*end != '\0') > { > g_set_error(error, MIME_ERROR, 0, "Value is not a number"); >@@ -865,9 +872,17 @@ > if (in_mask) > { > int b; >- long mask; >+ unsigned long mask; > >- mask = strtol(in_mask, &end, 0); >+ mask = strtoul(in_mask, &end, 0); >+ if (errno == ERANGE) { >+ g_set_error(error, MIME_ERROR, 0, >+ "Mask out-of-range (%s should fit in %d bytes)", >+ in_mask, bytes); >+ return; >+ } >+ >+ > if (*end != '\0') > { > g_set_error(error, MIME_ERROR, 0, >@@ -1022,11 +1037,33 @@ > } > > match->range_start = strtol(offset, &end, 10); >+ if (errno == ERANGE) { >+ char *number; >+ number = g_strndup(offset, end-offset); >+ g_set_error(error, MIME_ERROR, 0, >+ "Number out-of-range (%s should fit in 4 bytes)", >+ number); >+ g_free(number); >+ return; >+ } >+ > if (*end == ':' && end[1] && match->range_start >= 0) > { > int last; >+ char *begin; >+ >+ begin = end + 1; >+ last = strtol(begin, &end, 10); >+ if (errno == ERANGE) { >+ char *number; >+ number = g_strndup(begin, end-begin); >+ g_set_error(error, MIME_ERROR, 0, >+ "Number out-of-range (%s should fit in 8 bytes)", >+ number); >+ g_free(number); >+ return; >+ } > >- last = strtol(end + 1, &end, 10); > if (*end == '\0' && last >= match->range_start) > match->range_length = last - match->range_start + 1; > else >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 84214
: 52739 |
52740