mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
This fragment did not work right:
temp = bb_get_chunk_from_file(fp, &len);
if (temp) {
/* len > 0 here, it's ok to do temp[len-1] */
char c = temp[len-1];
With "int len" _sign-extending_, temp[len-1] can refer to a wrong location
if len > 0x7fffffff.
Signed-off-by: Quentin Rameau <quinq@fifth.space>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
||
|---|---|---|
| .. | ||
| awk.c | ||
| cmp.c | ||
| Config.src | ||
| diff.c | ||
| ed.c | ||
| Kbuild.src | ||
| patch.c | ||
| patch_bbox.c | ||
| patch_toybox.c | ||
| sed.c | ||
| sed1line.txt | ||
| sed_summary.htm | ||
| vi.c | ||