[OpenWrt-Devel] [PATCH libubox 9/9] avl: guard against theoretical null pointer dereference

Petr Štetiar ynezz at true.cz
Wed Nov 20 08:33:05 EST 2019


Yousong Zhou <yszhou4tech at gmail.com> [2019-11-20 20:33:06]:

Hi,

thanks for review!

> The first check (node->left == NULL && node->right == NULL) if
> matched, will return.

You can see the code path leading to null pointer dereference for yourself[1].
I wish, that analyzer could output test case directly :-) I wanted to write
test case myself in order to verify it, but it's quite time consuming so I
rather decided to move on with this simple silencer.

1. https://ynezz.gitlab.io/-/openwrt-libubox/-/jobs/355230141/artifacts/build/scan/2019-11-19-163708-203-1/index.html

-- ynezz

_______________________________________________
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