mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-22 23:46:10 +00:00
Check the return value of malloc and pread in case they fail. Signed-off-by: Qiyuan Zhang <zhang.github@outlook.com> Link: https://github.com/openwrt/openwrt/pull/16070 (cherry picked from commit 3f014543cd4bd099dc089cbb9b9b2d7b0db8a021) Signed-off-by: Rafal Boni <rafal.boni@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17889 Signed-off-by: Robert Marko <robimarko@gmail.com>