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.)

(cherry picked from commit 9515313b26beb005a521aff2e6edd4d75cd010da)

Details

Provenance
emasteAuthored on Oct 3 2022, 6:24 PM
Parents
rG1b2ab11a4a18: ssh-keysign: fix double free in error path
Branches
Unknown
Tags
Unknown