This is based on Petr's "[PATCH uci 0/6] fixes and improvements" patches.
This fixes an additional heap read overflow and some other problems I discovered by analyzing and fixing the problem. Hauke Mehrtens (4): file: use size_t for position and pointer file: Check buffer size after strtok() ucimap: Check return of malloc() Replace malloc() + memset() with calloc() cli.c | 3 +-- file.c | 33 +++++++++++++++++++++++---------- libuci.c | 5 ++--- uci_internal.h | 9 +++++---- ucimap.c | 12 ++++++------ util.c | 3 +-- 6 files changed, 38 insertions(+), 27 deletions(-) -- 2.20.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel