lede-Heleguo/package/utils
breakings 866c0bd91a
busybox: Fix snprintf arguments in lock (#9239)
* busybox: fix busybox lock applet pidstr buffer overflow

Kernel setting `/proc/sys/kernel/pid_max` can be set up to 4194304 (7
digits) which will cause buffer overflow in busbox lock patch, this
often happens when running in a rootfs container environment.
This commit enlarges `pidstr` to 12 bytes to ensure a sufficient buffer
for pid number and an additional char '\n'.

Signed-off-by: Qichao Zhang <njuzhangqichao@gmail.com>

* busybox: Fix snprintf arguments in lock

The first argument for snprintf is the buffer and the 2. one is the
size. Fix the order. This broke the lock application.

Fixes: 34567750db2c ("busybox: fix busybox lock applet pidstr buffer overflow")
Reported-by: Hartmut Birr <e9hack@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Qichao Zhang <njuzhangqichao@gmail.com>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-04-14 10:18:09 +08:00
..
adb
bcm27xx-userland
bcm4908img
bsdiff
busybox busybox: Fix snprintf arguments in lock (#9239) 2022-04-14 10:18:09 +08:00
bzip2
checkpolicy
ct-bugcheck
dtc dtc: support printing binary data with fdtget 2022-02-14 19:16:01 +00:00
e2fsprogs e2fsprogs: Update to version 1.46.5 (#8816) 2022-02-08 12:29:53 +08:00
f2fs-tools
fbtest
fritz-tools
jboot-tools
jsonfilter jsonfilter: update makefile url 2022-02-26 16:06:57 +00:00
lua
lua5.3
mdadm utils/mdadm: fix build on hosts without /run dir (#8651) 2022-01-10 16:56:47 +08:00
mtd-utils
nvram
osafeloader
oseama
otrx
policycoreutils
px5g-mbedtls
px5g-wolfssl
ravpower-mcu
secilc
spidev_test
ucode ucode: update to latest Git HEAD (#9230) 2022-04-12 11:26:17 +08:00
ugps
usbmode usbmode: update to version 2022-02-24 2022-02-26 16:07:31 +00:00
util-linux util-linux: sync upstream (#8953) 2022-02-27 01:35:53 +08:00