diff options
author | Mariusz Borsa <wrotki@msn.com> | 2025-03-09 10:58:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-09 10:58:46 -0700 |
commit | 62a6d63d634d816a7d73ab7735176ad05b118c79 (patch) | |
tree | 74556f05915d93b0bc5195b4f8f52e85f38a5372 /lldb/packages/Python/lldbsuite/test/configuration.py | |
parent | df570dadcb93a32c308d31c2ab54d2f46c8ae0c0 (diff) | |
download | llvm-62a6d63d634d816a7d73ab7735176ad05b118c79.zip llvm-62a6d63d634d816a7d73ab7735176ad05b118c79.tar.gz llvm-62a6d63d634d816a7d73ab7735176ad05b118c79.tar.bz2 |
[Sanitizers][Darwin] Correct iterating of MachO load commands (#130161)
The condition to stop iterating so far was to look for load command cmd
field == 0. The iteration would continue past the commands area, and
would finally find lc->cmd ==0, if lucky. Or crash with bus error, if
out of luck.
Correcting this by limiting the number of iterations to the count
specified in mach_header(_64) ncmds field.
rdar://143903403
---------
Co-authored-by: Mariusz Borsa <m_borsa@apple.com>
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
0 files changed, 0 insertions, 0 deletions