| commit | cbf10bcbb3f43ec035d6ba9cb2f23d7ea7c34c1f | [log] [tgz] | 
|---|---|---|
| author | Daniel RodrÃguez Troitiño <danielrodriguez@meta.com> | Fri Aug 29 17:08:35 2025 -0700 | 
| committer | GitHub <noreply@github.com> | Fri Aug 29 17:08:35 2025 -0700 | 
| tree | d63ee1e096898faab9f9d9e2905f2bb946794b8f | |
| parent | 1532116a25573bfc12a43894928974cddb8660e1 [diff] | 
[lld-macho] Avoid infinite recursion when parsing corrupted export tries (#152569) If an export trie is encoded incorrectly, and one of the children offsets points back to one of the nodes earlier in the serialization, the current code will end up in an infinite recursion, and eventually fail exhausting the available memory. The failure can be avoided if, before recursing, one checks that the offset is valid, that is, that the offset is beyond the current position. This is similar to a check done by llvm-objdump which reports the trie being corrupted.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.