From: Andreas Reichel <[email protected]> This patch series is an extended version 3 of the former [PATCH v2] Fix type and security bugs
* If a new environment is created by the API, the user expects a clone of the current environment except revision and ustate rather than an empty environment with only revision and ustate set. The function ebg_env_create_new is altered so that it creates a clone of the latest environment. * Several compiler warnings, memory leaks, missing error handling, unhandled return values, etc. are fixed. The 2nd commit casts away warnings regarding ignored return values as it focuses on all cppcheck warnings. The 3rd commit adds propper error handling where return values were ignored before as it focuses on memory allocation, regarding malloc, calloc and asprintf. Signed-off-by: Andreas Reichel <[email protected]> Andreas Reichel (3): env_api: Clone old environment on ebg_env_create_new Fix type and security bugs Fix mem alloc error handling in core and tools .travis-build.sh | 10 ++++- Makefile.am | 3 +- env/env_api.c | 11 ++++- env/env_api_fat.c | 16 +++---- env/uservars.c | 8 ++-- tools/bg_setenv.c | 118 ++++++++++++++++++++++++++++++++----------------- tools/ebgpart.c | 92 ++++++++++++++++++++++++++------------ tools/tests/test_api.c | 3 +- 8 files changed, 173 insertions(+), 88 deletions(-) -- 2.14.1 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/20171005120001.18279-1-andreas.reichel.ext%40siemens.com. For more options, visit https://groups.google.com/d/optout.
