HomeFreeBSD

Fix mbnambuf support for multi-byte characters. If a substring is larger
rS145131Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Fix mbnambuf support for multi-byte characters. If a substring is larger
than WIN_CHARS bytes, we shift the suffix (previous substrings) upwards
by the amount this substring exceeds its WIN_CHARS slot. Profiling shows
this change is indistinguishable from the previous code at 95% confidence.
This bug would result in attempts to access or create files or directories
with multi-byte characters returning an error but no data loss.

Reported and tested by: avatar
MFC after: 3 days

Details

Provenance
njlAuthored on
Parents
rS145130: Document 'clear' and 'dump' subcommands.
Branches
Unknown
Tags
Unknown

Event Timeline