bug-binutils
[Top][All Lists]
Advanced

[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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]