Commit 76b2e01
Filter C1 control characters in addition to C0 and DEL
Hardening follow-up: extend control character filtering to also
catch C1 controls (U+0080-U+009F), which are encoded as two-byte
UTF-8 sequences starting with 0xC2.
Related-to: GHSA-q64m-h5hc-c4qq
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b83a55b commit 76b2e01
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | | - | |
142 | | - | |
143 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
| |||
0 commit comments