android_external_toybox/lib
Elliott Hughes 5feaacbab8 sendfile_len: fix bounds check.
We want to check whether the next call we make will try to send more
than 1<<30 bytes, not whether the total number of bytes to transfer is
more than that.

Interestingly, the read() fallback implementation already has the right
check, presumably because files larger than libbuf are commonplace,
whereas files larger than 1<<30 bytes are not.

Tested locally using truncate to create a 2GiB file (which works) and a
2.5GiB file (which does not work), tar to create the tarfile, and then
tar to extract them.
2024-08-01 14:08:12 -05:00
..
args.c Thinko. (Reused a variable one line too early.) 2024-04-08 13:48:09 -05:00
commas.c dd: iflags, oflags, fix ^C, fix the fundamental loop. 2019-07-10 01:54:01 -05:00
deflate.c Whitespace cleanup. 2024-02-10 02:32:16 -06:00
dirtree.c Set DIRTREE_SYMFOLLOW when we followed a symlink to this node. 2023-10-01 03:21:20 -05:00
elf.c file: add arm32 ELF flag decoding. 2023-11-03 14:37:47 -05:00
env.c Rename/move xmemcmp() (which doesn't exit) to smemcmp(), and add x prefix 2023-01-06 19:05:51 -06:00
hash.c Shut the compiler up. 2024-02-21 17:43:47 -06:00
lib.c Fix chmod g+rX-ws and similar, plus in-passing cleanups. 2024-05-29 11:22:08 -05:00
lib.h Silence spurious(?) ASAN warning on debian's gcc 12.2.0-14 on x86-64. 2024-06-18 08:51:51 -05:00
llist.c Move num_cache from lib into its only user. 2022-10-13 00:48:22 -05:00
lsm.h macOS: numerous fixes. 2019-06-08 13:10:10 -05:00
net.c netcat: add -o 2024-05-17 03:34:34 -05:00
password.c Stdout buffering broke yet more stuff. 2024-04-05 12:06:29 -05:00
portability.c sendfile_len: fix bounds check. 2024-08-01 14:08:12 -05:00
portability.h Add mv -x to atomically swap two files. 2024-03-03 01:58:43 -06:00
toyflags.h Move the "lie to autoconf" plumbing into main.c and apply it to grep. 2024-06-18 08:52:38 -05:00
tty.c Add cfspeed2bps() and bsp2cfspeed() conversion functions, and make 2024-04-18 20:20:00 -05:00
utf8.c Whitespace cleanup. 2024-02-10 02:32:16 -06:00
xwrap.c Fix stale comment. 2024-05-22 00:57:55 -05:00