[all-commits] [llvm/llvm-project] 3d2a91: [clang] Fixes inf loop parsing fixed point literal...
PiJoules via All-commits
all-commits at lists.llvm.org
Mon Feb 26 14:47:27 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3d2a918831e7bcf1285641ee446ac1640819819f
https://github.com/llvm/llvm-project/commit/3d2a918831e7bcf1285641ee446ac1640819819f
Author: PiJoules <6019989+PiJoules at users.noreply.github.com>
Date: 2024-02-26 (Mon, 26 Feb 2024)
Changed paths:
M clang/lib/Lex/LiteralSupport.cpp
M clang/test/Frontend/fixed_point_declarations.c
Log Message:
-----------
[clang] Fixes inf loop parsing fixed point literal (#83071)
Clang was incorrectly finding the start of the exponent in a fixed point
hex literal. It would unconditionally find the first `e/E/p/P` in a
constant regardless of if it were hex or not and parser the remaining
digits as an APInt. In a debug build, this would be caught by an
assertion, but in a release build, the assertion is removed and we'd end
up in an infinite loop.
Fixes #83050
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list