Commit fd86aa7
Fix buffer overflow the internal demangling function
The overflow can happen during rollback after a parsing
failure, where the null terminator is written without
verifying the buffer bounds.
Credit to www.code-intelligence.com for reporting this issue
PiperOrigin-RevId: 732995553
Change-Id: Ic5075f53e510d270e1784d593defcd53f9121d021 parent ca210f1 commit fd86aa7
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2819 | 2819 | | |
2820 | 2820 | | |
2821 | 2821 | | |
2822 | | - | |
| 2822 | + | |
| 2823 | + | |
2823 | 2824 | | |
2824 | 2825 | | |
2825 | 2826 | | |
| |||
2832 | 2833 | | |
2833 | 2834 | | |
2834 | 2835 | | |
2835 | | - | |
| 2836 | + | |
| 2837 | + | |
2836 | 2838 | | |
2837 | 2839 | | |
2838 | 2840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2017 | 2017 | | |
2018 | 2018 | | |
2019 | 2019 | | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
2020 | 2027 | | |
2021 | 2028 | | |
2022 | 2029 | | |
| |||
0 commit comments