llvm-project
bb123b22 - [Clang][Frontend] Fix fix-it size overflow in emitted .dia (#216075)

Commit
1 day ago
[Clang][Frontend] Fix fix-it size overflow in emitted .dia (#216075) When fix-its are emitted into a .dia, we previously stored the fix-it text in a blob of arbitrary size, but the size of the text was stored in a separate 16 bit field. For really large fix-its, the size won't fit it those 16 bits, and the compiler crashes. Switch to a variable length encoding of the fit-it size. This is similar to this issue: https://github.com/llvm/llvm-project/commit/e26aea5b290165f3bccffab662a706d4a56f7540 We also remove a hard coded check in the clang library used to load .dia files that failed for fix-its whose size doesn't fit in 16 bits. Generated with codex Co-authored-by: Nuri Amari <nuriamari@fb.com>
Author
Parents
Loading