Repository navigation
Commit fdccbb0
committed
sprintf(): prevent %c from getting past the check
- a run of ' in a format made the %c regex backtrack until PCRE gave
up, and the check read that as "no %c", so a later %c reached
sprintf()
- each ' now only matches as a padding pair, so a format is scanned
once, and a PCRE failure throws like a %c does1 parent 5765e30 commit fdccbb0
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
| |||
0 commit comments