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
- Repository
- rL LLVM
Paths
| 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 45697 lld/trunk/ELF/InputSection.cpp
lld/trunk/ELF/Target.h
lld/trunk/ELF/Target.cpp
|