[OpenWrt-Devel] [PATCH] fstools: mkdev: Avoid out of bounds read

Rafał Miłecki zajec5 at gmail.com
Mon Sep 2 23:55:27 EDT 2019


On Mon, 2 Sep 2019 at 22:33, Hauke Mehrtens <hauke at hauke-m.de> wrote:
> readlink() truncates and does not null terminate the string when more
> bytes would be written than available. Just increase the char array by
> one and assume that there is a problem when all bytes are needed.
>
> Coverity: #1330087, #1329991
> Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>

Minor comment:
That "fstools: " prefix is redundant. As for marking a PATCH I suggest
something like
[PATCH fstools]

_______________________________________________
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