Closed tyler92 closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
1c733a1
) 78.09% compared to head (097e004
) 78.11%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Excellent work @tyler92!
This issue has been found as a result of fuzzing https://github.com/pistacheio/pistache/pull/1191
AddressSanitizer report
==2032182==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x506000aa5fe0 at pc 0x55739b8e848d bp 0x7ffcc86b6550 sp 0x7ffcc86b6548 READ of size 1 at 0x506000aa5fe0 thread T0 #0 0x55739b8e848c in Pistache::StreamBufExplanation:
buf->in_avail() == 1
means that we can read the current character, but the next one might be out of bounds because there is no guarantee that StreamCursor works with zero-terminated string.