Package: fontconfig
Version: 2.9.0-7.1
Severity: normal
Tags: upstream

$ grep realloc -r *
[...]
fc-case/fc-case.c:      folds = realloc (folds, (nfolds + 1) * sizeof 
(FcCaseFold));
fc-case/fc-case.c:      foldChars = realloc (foldChars, (nfoldChars + len) * 
sizeof (FcChar8));
[...]
src/fccharset.c:        numbers = realloc (numbers, alloced * sizeof 
(*numbers));
[...]

~Niels

In case you are not familiar with the problem:

  realloc returns NULL on error, but does *not* free the input.  Thus:

     a = realloc(a, x);

  will leak on error.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to