Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 68166 Details for
Bug 105540
update-mime-database segfaults with libxml2-2.6.21
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for libxml2 to give an error instead of segfaulting when freeing NULL
freeing-null-ptr.patch (text/plain), 430 bytes, created by
Maurice van der Pot (RETIRED)
on 2005-09-11 02:53:54 UTC
(
hide
)
Description:
Patch for libxml2 to give an error instead of segfaulting when freeing NULL
Filename:
MIME Type:
Creator:
Maurice van der Pot (RETIRED)
Created:
2005-09-11 02:53:54 UTC
Size:
430 bytes
patch
obsolete
>diff -ruN libxml2-2.6.21/xmlmemory.c libxml2-2.6.21-fixed/xmlmemory.c >--- libxml2-2.6.21/xmlmemory.c 2005-05-08 13:31:15.000000000 +0200 >+++ libxml2-2.6.21-fixed/xmlmemory.c 2005-09-11 11:33:13.631301960 +0200 >@@ -409,6 +409,10 @@ > size_t size; > #endif > >+ if (!ptr) { >+ goto error; >+ } >+ > if (ptr == (void *) -1) { > xmlGenericError(xmlGenericErrorContext, > "trying to free pointer from freed area\n");
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 105540
:
68146
| 68166