mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-18 13:45:27 +00:00
When "cp >= barg_buf + BARG_LEN-2", it breaks internel looping 'while', but outside loop 'for' still has effect, so "*cp++ = ' '" will continue repeating which may cause memory overflow. So need additional length check for it in the outside looping. Also beautify the related code which found by "./scripts/checkpatch.pl" Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
|---|---|---|
| .. | ||
| bootstr_32.c | ||
| bootstr_64.c | ||
| cif.S | ||
| console_32.c | ||
| console_64.c | ||
| init_32.c | ||
| init_64.c | ||
| Makefile | ||
| memory.c | ||
| misc_32.c | ||
| misc_64.c | ||
| mp.c | ||
| p1275.c | ||
| printf.c | ||
| ranges.c | ||
| tree_32.c | ||
| tree_64.c | ||