[PATCH uci 0/4] uci: Fix multiple bugs

Hauke Mehrtens hauke at hauke-m.de
Sat Oct 3 13:21:54 EDT 2020


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




More information about the openwrt-devel mailing list