commit | 659a48f25a96b7072b44d372c47385a2608f8671 | [log] [tgz] |
---|---|---|
author | jeffreytan81 <jeffreytan@meta.com> | Tue Oct 17 17:26:05 2023 -0700 |
committer | GitHub <noreply@github.com> | Tue Oct 17 17:26:05 2023 -0700 |
tree | 4a42d89c54f053aa9cc883ed0523e7ab24222250 | |
parent | 5a56f0074cf3229983a15496c3caa41d27c5606f [diff] |
Detect against invalid variant index for LibStdC++ std::variant data formatters (#69253) https://github.com/llvm/llvm-project/pull/68012/files added new data formatters for LibStdC++ std::variant. However, this formatter can crash if std::variant's index field has invalid value (exceeds the number of template arguments). This can happen if the current IP stops at a place std::variant is not initialized yet. This patch fixes the crash by ensuring the index is a valid value. --------- Co-authored-by: jeffreytan81 <jeffreytan@fb.com>
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, or #llvm IRC channel on OFTC.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.