FreeBSD Bugzilla – Attachment 206867 Details for
Bug 239516
readelf -wf segfaults on most (all?) debug info files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Robustness patch
libdwarf_frame.c.diff (text/plain), 542 bytes, created by
Paco Pascal
on 2019-08-24 23:14:54 UTC
(
hide
)
Description:
Robustness patch
Filename:
MIME Type:
Creator:
Paco Pascal
Created:
2019-08-24 23:14:54 UTC
Size:
542 bytes
patch
obsolete
>Index: libdwarf_frame.c >=================================================================== >--- libdwarf_frame.c (revision 351450) >+++ libdwarf_frame.c (working copy) >@@ -458,6 +458,13 @@ > > offset = 0; > while (offset < ds->ds_size) { >+ /* >+ If the size of the section is greater than 0 and its type is >+ NOBITS, then ds_data is NULL and this function should >+ never have been called. >+ */ >+ assert(ds->ds_data != NULL); >+ > entry_off = offset; > length = dbg->read(ds->ds_data, &offset, 4); > if (length == 0xffffffff) {
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 239516
:
206840
| 206867