HomeFreeBSD

libc: Fix size range check in setvbuf

Description

libc: Fix size range check in setvbuf

From enh at google.com via openbsd-tech mailing list via pfg@:

The existing test is wrong for LP64, where size_t has twice as many
relevant bits as int, not just one. (Found by inspection by
rprichard.)

Details

Provenance
emasteAuthored on Oct 3 2022, 6:24 PM
Parents
rG89e5ef8917af: Fix kernel build after 754cb545b68ba0a1643792763d000018ffe2afec .
Branches
Unknown
Tags
Unknown