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: 206177
Submitted by: Alexander Cherepanov <cherepan@mccme.ru>
MFC after: 1 week

Details

Provenance
brooksAuthored on
Parents
rS293854: Given that em(4), lem(4) and igb(4) hardware doesn't require the
Branches
Unknown
Tags
Unknown