[OpenWrt-Devel] Bug on procps-ng-skill OpenWrt 19.07.2

Jeffery To jeffery.to at gmail.com
Mon Apr 20 14:06:36 EDT 2020


On Mon, Apr 20, 2020 at 12:28 PM Marcelo Pacheco <marcelo at m2j.com.br> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200421/dbeb755d/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list