In InputSection.cpp it was possible to dereference null.
Had to change signature of relocateTlsOptimize to accept pointer instead of reference.
Details
Details
Diff Detail
Diff Detail
Differential D16466
[ELF] - fix possible UB when dereferencing null ClosedPublic Authored by grimar on Jan 22 2016, 7:44 AM.
Details Summary In InputSection.cpp it was possible to dereference null.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jan 22 2016, 8:36 AM Closed by commit rL258508: [ELF] - fix possible UB when dereferencing null (authored by grimar). · Explain WhyJan 22 2016, 10:06 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 45688 ELF/InputSection.cpp
ELF/Target.h
ELF/Target.cpp
|
Thats the place. Having nullptr is ok here.