Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 58057 Details for
Bug 91398
sys-devel/binutils: heap overflow
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for binutils provided by Sebastian Krahmer of suse.
binutils-2.15.91.0.2-malloc-wrap.diff2 (text/plain), 937 bytes, created by
Tavis Ormandy (RETIRED)
on 2005-05-04 12:37:33 UTC
(
hide
)
Description:
patch for binutils provided by Sebastian Krahmer of suse.
Filename:
MIME Type:
Creator:
Tavis Ormandy (RETIRED)
Created:
2005-05-04 12:37:33 UTC
Size:
937 bytes
patch
obsolete
>diff -ruN binutils-2.15.91.0.2/bfd/elfcode.h binutils-2.15.91.0.2.fixed/bfd/elfcode.h >--- binutils-2.15.91.0.2/bfd/elfcode.h 2004-07-27 21:36:08.000000000 -0700 >+++ binutils-2.15.91.0.2.fixed/bfd/elfcode.h 2005-04-30 06:31:12.236081008 -0700 >@@ -640,6 +640,9 @@ > Elf_Internal_Shdr *shdrp; > unsigned int num_sec; > >+ if (sizeof(*i_shdrp)*i_ehdrp->e_shnum/sizeof(*i_shdrp)!=i_ehdrp->e_shnum) >+ goto got_no_match; >+ > amt = sizeof (*i_shdrp) * i_ehdrp->e_shnum; > i_shdrp = bfd_alloc (abfd, amt); > if (!i_shdrp) >@@ -647,6 +650,10 @@ > num_sec = i_ehdrp->e_shnum; > if (num_sec > SHN_LORESERVE) > num_sec += SHN_HIRESERVE + 1 - SHN_LORESERVE; >+ >+ if (sizeof (i_shdrp) * num_sec/sizeof (i_shdrp) != num_sec) >+ goto got_no_match; >+ > elf_numsections (abfd) = num_sec; > amt = sizeof (i_shdrp) * num_sec; > elf_elfsections (abfd) = bfd_alloc (abfd, amt); >
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 91398
:
57996
|
58057
|
58185
|
58471
|
58472
|
58473
|
58474
|
58482