HomeFreeBSD

nvi: use memmove to realign buffers

Description

nvi: use memmove to realign buffers

Replace a rather convoluted realignment algorithm with memmove(). In
addition to being hard to understand, the code would read beyond the end
of the input buffer in certain conditions (found on CheriBSD).

Sponsored by: DARPA
Pull Request: https://github.com/lichray/nvi2/pull/122

Details

Provenance
brooksAuthored on Wed, Nov 27, 5:38 PM
Parents
rGc0faaa14d77d: intro(3): remove profiling libs
Branches
Unknown
Tags
Unknown