diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-09-07 15:36:40 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-10-11 14:39:38 +1100 |
commit | de2f990a98718d15bff074b9ae65f2eb92a2f938 (patch) | |
tree | 357bdb7dd29f2fcb91ee9ff594b2e89908461a36 /m4/ax_with_curses.m4 | |
parent | ff09391bd6294cce5cfc294ce34148f464a8cf3a (diff) | |
download | petitboot-de2f990a98718d15bff074b9ae65f2eb92a2f938.zip petitboot-de2f990a98718d15bff074b9ae65f2eb92a2f938.tar.gz |
lib/file: Fix errors found by Coverity scan
Fix several errors in copy_file_secure_dest() found by Coverity and some
minor formatting issues:
143603: Correctly handle mkstemp() return value
143605: Avoid accessing dest_filename[-1] on readlink() error
143606, 143610: Avoid accessing dest_filename[sizeof(dest_filename)]
143607: Fix incorrectly passing sizeof(pointer) to fread()
143608, 143611: Cleanup resources on early exit
143609: Explicitly set umask before calling mkstemp()
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'm4/ax_with_curses.m4')
0 files changed, 0 insertions, 0 deletions