llvm-project
c0f4a8a7 - [clang][bytecode] Fix incorrect handling of arithmetic on string literals (#173212)

Commit
11 days ago
[clang][bytecode] Fix incorrect handling of arithmetic on string literals (#173212) The fast path for string literals fails to consider the offset of the pointer into an array of chars, this change simply adds the required checks and bounds corrections prior to calling strnlen. Fixes #173175
Author
Parents
Loading