Commit Graph

3 Commits

Author SHA1 Message Date
Tobias Schramm a6336d0bce autoupdater: Check if allocation of uci contect was successfull
Previously the return value of uci_alloc_context was not checked leading
to a possible null ptr dereference

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
2018-02-20 12:49:13 +01:00
Tobias Schramm a96a2d7718 autoupdater: Replace mallocs with safe_malloc
During parsing of cinfiguration multiple null ptr dereferences were
possible due to a lack of NULL checks

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
2018-02-20 12:49:13 +01:00
Jan-Philipp Litza 49cb4b3fdb
autoupdater: new implementation
This new version of the autoupdater is implemented in C instead of Lua,
allowing us to interface with libuclient (HTTP downloads) and libecdsautil
(signature checks) directly instead of spawning external processes,
saving RAM and making error handling more robust.

[Matthias Schiffer: add commit message]
2018-01-13 00:22:27 +01:00