aboutsummaryrefslogtreecommitdiff
path: root/share/i18n/csmapper/CP/CP852%UCS.src
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2026-03-17 19:49:01 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2026-03-17 19:49:01 +0000
commit2353fa1aca553883141a7b5d0aa54312a4610412 (patch)
treeae4ebf2ae3ea88cdfbe8ed9a2c174dbb6b36332d /share/i18n/csmapper/CP/CP852%UCS.src
parent2cf15144daf7ec44cdcd9bf3ef007939b79c361e (diff)
LinuxKPI: Fix simple_read_from_buffer for zero-size and off-the-end readsHEADmain
I noticed that the buf_size < 0 check can never be true (it's a size_t) and decided to check for this condition by an alternate expression, and I also noticed that a read_size of 0 would incorrectly return -EFAULT. Instead, return success for both of these cases as reading beyond the EOF of a normal file also returns EOF, not EINVAL. Reviewed by: bz Sponsored by: AFRL, DARPA Differential Revision: https://reviews.freebsd.org/D55845
Diffstat (limited to 'share/i18n/csmapper/CP/CP852%UCS.src')
0 files changed, 0 insertions, 0 deletions