CVE-2014-8117.6.6bf4527.patch 515 B

123456789101112131415161718
  1. Subject: Don't bail if there was no error, buf could have been NULL on entry
  2. ID: CVE-2014-8117
  3. Upstream-Author: Christos Zoulas <christos@zoulas.com>
  4. Date: Thu Dec 4 15:22:05 2014 +0000
  5. Origin: FILE5_20-42-g6bf4527
  6. Last-Update: 2015-01-09
  7. --- a/src/softmagic.c
  8. +++ b/src/softmagic.c
  9. @@ -1629,7 +1629,7 @@
  10. fprintf(stderr, "indirect @offs=%u[%d]\n", offset, rv);
  11. rbuf = file_pop_buffer(ms, pb);
  12. - if (rbuf == NULL)
  13. + if (rbuf == NULL && ms->event_flags & EVENT_HAD_ERR)
  14. return -1;
  15. if (rv == 1) {