HomeFreeBSD

Avoid reading pass the end of the source buffer when it is not NUL

Description

Avoid reading pass the end of the source buffer when it is not NUL
terminated.

If this buffer is adjacent to an unmapped page or a version of C with
bounds checked is used this may result in a crash.

PR: 206178
Submitted by: Alexander Cherepanov <cherepan@mccme.ru>
MFC after: 1 week

Details

Provenance
brooksAuthored on
Parents
rS293855: Avoid reading pass the end of the source buffer when it is not NUL
Branches
Unknown
Tags
Unknown