diff options
| author | Fangrui Song <i@maskray.me> | 2021-11-28 14:47:57 -0800 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2021-11-28 14:47:57 -0800 |
| commit | d060cc1f9808dd5de524334fd695404a96e3175f (patch) | |
| tree | fe8fde8da38a2368d1b67ab88d49f1c188c08109 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | cecc6893a08618fc753cd55893b720a01fbd2b51 (diff) | |
| download | llvm-d060cc1f9808dd5de524334fd695404a96e3175f.zip llvm-d060cc1f9808dd5de524334fd695404a96e3175f.tar.gz llvm-d060cc1f9808dd5de524334fd695404a96e3175f.tar.bz2 | |
[ELF] Fix out-of-bounds write in memset(&Out::first, ...)
Fix r285764: there is no guarantee that Out::first is placed before other
static data members of `struct Out`. After `bufferStart` was introduced, this
out-of-bounds write is destined in many compilers. It is likely benign, though.
And move `Out::elfHeader->size` assignment beside `Out::elfHeader->sectionIndex`
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
