mbox series

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

Message ID 20201003172158.22552-1-hauke@hauke-m.de
Headers show
Series uci: Fix multiple bugs | expand

Message

Hauke Mehrtens Oct. 3, 2020, 5:21 p.m. UTC
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(-)