shithub: mp3dec

Download patch

ref: d438e19d8844d09100407037e9aa76990fc7094b
parent: a5bf79df79601fc1ec6eb885cce6f11a04733c99
author: lieff <lieff@users.noreply.github.com>
date: Wed May 16 14:51:34 EDT 2018

coverity fixes

--- a/minimp3_test.c
+++ b/minimp3_test.c
@@ -43,11 +43,13 @@
     *data_size = 0;
     if (!file)
         return 0;
-    fseek(file, 0, SEEK_END);
+    if (fseek(file, 0, SEEK_END))
+        return 0;
     *data_size = (int)ftell(file);
     if (*data_size < 0)
         return 0;
-    fseek(file, 0, SEEK_SET);
+    if (fseek(file, 0, SEEK_SET))
+        return 0;
     data = (unsigned char*)malloc(*data_size);
     if (!data)
         return 0;