summaryrefslogtreecommitdiff
path: root/src/utils.c
AgeCommit message (Collapse)AuthorLines
2017-04-02Merge pull request #289 from stoeckmann/memory-leakDaniel Friesel-0/+2
Fixed memory leak on file name collision.
2017-04-02Fixed memory leak on file name collision.Tobias Stoeckmann-0/+2
If feh_unique_filename encounters a file that already exists, the memory for the temporary filename is not released. As this happens in /tmp at some code places, an attacker could use this to spray the memory of feh, or simply triggering an out of memory condition. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2017-04-02Avoid out of boundary read on empty/broken file.Tobias Stoeckmann-2/+2
If ereadfile encounters an empty file or the file could not be read, an out ouf boundary read (and possible write) occurs. Always check the return value of fread to be > 0 before processing the result buffer. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2014-04-14Use new path_is_url helper instead of repeated strncmp chainsDaniel Friesel-0/+9
2011-09-03utils.c: Remove unused functions stroflen, feh_get_tmp_dir, feh_get_user_nameDaniel Friesel-44/+0
2011-04-30Initial support for in-image warning display (closes #43)Daniel Friesel-4/+4
2010-06-10Remove D_ENTER/D_RETURN, use gdb tracepoints + readelf/awk magic insteadDaniel Friesel-2/+1
2010-02-13Change source code indentation (indent -kr -i8 -hnl, mainly)Daniel Friesel-169/+158
2010-02-05Initial commit (upstream 1.3.4)Daniel Friesel-0/+248