Commit 699d17b
committed
fix(pageant): include NUL terminator in WM_COPYDATA payload
Pageant expects the mapping name sent through WM_COPYDATA to be an
ASCIZ string and validates the final byte of cbData. The previous code
used CString::as_bytes(), so cbData omitted the terminating NUL even
though the pointer referenced a NUL-terminated buffer. Pageant
therefore rejected the request and the client observed an early EOF.
Use as_bytes_with_nul() for both the payload length and pointer.1 parent 149f8eb commit 699d17b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
| 258 | + | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
0 commit comments