Commit 6827f15
marcel
Fix out-of-bounds read in SIP parameter escape handling
The escape handler in VP_PVALUE_QUOTED checked for NUL terminator
after advancing the cursor, but the parser is bounded by an end
pointer, not NUL. A backslash at the last position would dereference
past the buffer. Check bounds against end pointer before incrementing.1 parent 67f94c9 commit 6827f15
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| |||
0 commit comments