[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/19878] PE/COFF regression in base of code and data calculation
From: |
toni.spets at iki dot fi |
Subject: |
[Bug ld/19878] PE/COFF regression in base of code and data calculation |
Date: |
Mon, 28 Mar 2016 18:05:09 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19878
Toni Spets <toni.spets at iki dot fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |toni.spets at iki dot fi
--- Comment #1 from Toni Spets <toni.spets at iki dot fi> ---
Created attachment 9134
--> https://sourceware.org/bugzilla/attachment.cgi?id=9134&action=edit
Fix PR ld/19878: Properly zero local structure before use
Attached is a patch that fixes the issue.
Probably by mistake this memset() was removed in the offending commit. Because
of that, some fields in the structure are left uninitialized if text_sec,
data_sec or bss_sec variables are not set.
In any normal build, all fields are set and this regression is not hit.
However, it should never leave the structure uninitialized as it's not
guaranteed the following code will always set all fields it can hold.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/19878] New: PE/COFF regression in base of code and data calculation, toni.spets at iki dot fi, 2016/03/28
- [Bug ld/19878] PE/COFF regression in base of code and data calculation, toni.spets at iki dot fi, 2016/03/28
- [Bug ld/19878] PE/COFF regression in base of code and data calculation,
toni.spets at iki dot fi <=
- [Bug ld/19878] PE/COFF regression in base of code and data calculation, toni.spets at iki dot fi, 2016/03/28
- [Bug ld/19878] PE/COFF regression in base of code and data calculation, amodra at gmail dot com, 2016/03/29
- [Bug ld/19878] PE/COFF regression in base of code and data calculation, toni.spets at iki dot fi, 2016/03/29
- [Bug ld/19878] PE/COFF regression in base of code and data calculation, cvs-commit at gcc dot gnu.org, 2016/03/29
- [Bug ld/19878] PE/COFF regression in base of code and data calculation, amodra at gmail dot com, 2016/03/29
- [Bug ld/19878] PE/COFF regression in base of code and data calculation, toni.spets at iki dot fi, 2016/03/29
- [Bug ld/19878] PE/COFF regression in base of code and data calculation, cvs-commit at gcc dot gnu.org, 2016/03/29