Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 890516 Details for
Bug 1082370
-shared -g3 can trigger terrabyte+ mallocs() in ld
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Check for pathalogical debug strings
compress.c.patch (text/plain), 962 bytes, created by
Nick Clifton
on 2014-04-28 14:50:01 UTC
(
hide
)
Description:
Check for pathalogical debug strings
Filename:
MIME Type:
Creator:
Nick Clifton
Created:
2014-04-28 14:50:01 UTC
Size:
962 bytes
patch
obsolete
>diff --git a/bfd/compress.c b/bfd/compress.c >index 5a289e6..20eef95 100644 >--- a/bfd/compress.c >+++ b/bfd/compress.c >@@ -24,6 +24,7 @@ > #ifdef HAVE_ZLIB_H > #include <zlib.h> > #endif >+#include "safe-ctype.h" > > #ifdef HAVE_ZLIB_H > static bfd_boolean >@@ -303,6 +304,15 @@ bfd_is_section_compressed (bfd *abfd, sec_ptr sec) > compressed = (bfd_get_section_contents (abfd, sec, compressed_buffer, 0, 12) > && CONST_STRNEQ ((char*) compressed_buffer, "ZLIB")); > >+ /* Check for the pathalogical case of a debug string section that >+ contains the string ZLIB.... as the first entry. We assume that >+ no uncompressed .debug_str section would ever be big enough to >+ have the first byte of its (big-endian) size be non-zero. */ >+ if (compressed >+ && strcmp (sec->name, ".debug_str") == 0 >+ && ISPRINT (compressed_buffer[4])) >+ compressed = FALSE; >+ > /* Restore compress_status. */ > sec->compress_status = saved; > return compressed;
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 1082370
:
880480
| 890516