On Mon, Apr 20, 2020 at 12:28 PM Marcelo Pacheco <[email protected]> wrote:

> In module procps-ng-3.3.15, source skill.c, function check_proc
> char buf[128];
>
> This buffer is too small to read /proc/<pid>/stat
> The code requires the whole file to be read:
>          len = read(fd, buf, sizeof(buf));
>         if (len <= 0 || (size_t)len >= sizeof(buf))
>                 goto closure;
>
> Fix I used is to increase to 256 bytes.
> Worked for me.
>

You may want to open an issue/PR at the packages repo:
https://github.com/openwrt/packages

You may also want to open an issue/MR upstream (
https://gitlab.com/procps-ng/procps) or explain why this issue is specific
to OpenWrt.

Regards,
Jeff
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to