aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/configuration.py
diff options
context:
space:
mode:
authorMariusz Borsa <wrotki@msn.com>2025-03-09 10:58:46 -0700
committerGitHub <noreply@github.com>2025-03-09 10:58:46 -0700
commit62a6d63d634d816a7d73ab7735176ad05b118c79 (patch)
tree74556f05915d93b0bc5195b4f8f52e85f38a5372 /lldb/packages/Python/lldbsuite/test/configuration.py
parentdf570dadcb93a32c308d31c2ab54d2f46c8ae0c0 (diff)
downloadllvm-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