stefan pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=6b1ed0f5737fa5a531ed016f8f0cacc9fafcca1b
commit 6b1ed0f5737fa5a531ed016f8f0cacc9fafcca1b Author: Stefan Schmidt <[email protected]> Date: Fri Apr 17 15:23:44 2020 +0200 exactness: make sure we handle a negative file descriptor In an error case the fd could be negative here and we should check before feeding it into fdopen(). This is the same patch we used in recorder.c CID: 1422194 Reviewed-by: Marcel Hollerbach <[email protected]> Differential Revision: https://phab.enlightenment.org/D11728 --- src/bin/exactness/player.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/exactness/player.c b/src/bin/exactness/player.c index 870cc51d27..2dcf3f5e59 100644 --- a/src/bin/exactness/player.c +++ b/src/bin/exactness/player.c @@ -983,6 +983,7 @@ _setup_font_settings(const char *fonts_dir) if (chosen_fonts) { int tmp_fd = eina_file_mkstemp("/tmp/fonts_XXXXXX.conf", &fonts_conf_name); + if (tmp_fd < 0) return EINA_FALSE; FILE *tmp_f = fdopen(tmp_fd, "wb"); fprintf(tmp_f, "<?xml version=\"1.0\"?>\n<!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">\n<fontconfig>\n" --
