Beginner e9c3781bb9
busybox: fix busybox lock applet pidstr buffer overflow (#9163)
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>

Co-authored-by: Qichao Zhang <njuzhangqichao@gmail.com>
2022-03-31 16:48:06 +08:00
..
2022-01-14 12:15:24 +08:00
2022-01-14 12:15:24 +08:00
2017-09-06 19:19:45 +08:00
2017-09-06 19:19:45 +08:00
2022-01-14 12:15:24 +08:00