about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-10-24 22:22:52 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-10-25 19:07:34 +0000
commit2dec1bc685c58747c81391b1c5a53ba91400c50d (patch)
treec53dd4a55d587f3ae8627a0bc28494d3a4a17ca4 /compiler/rustc_codegen_gcc
parent855444ec54d1a745c5c53375792957170244e7c3 (diff)
downloadrust-2dec1bc685c58747c81391b1c5a53ba91400c50d.tar.gz
rust-2dec1bc685c58747c81391b1c5a53ba91400c50d.zip
Avoid unbounded O(n^2) when parsing nested type args
When encountering code like `f::<f::<f::<f::<f::<f::<f::<f::<...` with
unmatched closing angle brackets, add a linear check that avoids the
exponential behavior of the parse recovery mechanism.

Fix #117080.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions