Browse Source

Fixed bug #68827 Double free with disabled ZMM

pull/1038/head
Joshua Rogers 12 years ago
committed by Anatol Belski
parent
commit
91aa340180
  1. 3
      NEWS
  2. 3
      ext/fileinfo/libmagic/apprentice.c

3
NEWS

@ -10,6 +10,9 @@ PHP NEWS
- Dba:
. Fixed bug #68711 (useless comparisons). (bugreports at internot dot info)
- Fileinfo:
. Fixed bug #68827 (Double free with disabled ZMM). (Joshua Rogers)
- OpenSSL:
. Fixed bug #55618 (use case-insensitive cert name matching).
(Daniel Lowrey)

3
ext/fileinfo/libmagic/apprentice.c

@ -2603,8 +2603,7 @@ apprentice_map(struct magic_set *ms, const char *fn)
if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) {
file_oomem(ms, sizeof(*map));
efree(map);
goto error;
return NULL;
}
if (fn == NULL) {

Loading…
Cancel
Save