Copied from Debian. From: Carlos Garcia Campos Date: Mon, 19 Nov 2018 12:33:07 +0100 Subject: ft: Use FT_Done_MM_Var instead of free when available in cairo_ft_apply_variations Fixes a crash when using freetype >= 2.9 [This is considered to be security-sensitive because WebKitGTK+ sets its own memory allocator, which is not compatible with system free(), making this a remotely triggerable denial of service or memory corruption.] Origin: upstream, commit:90e85c2493fdfa3551f202ff10282463f1e36645 Bug: https://gitlab.freedesktop.org/cairo/cairo/merge_requests/5 Bug-Debian: https://bugs.debian.org/916389 Bug-CVE: CVE-2018-19876 --- src/cairo-ft-font.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c index 325dd61..981973f 100644 --- a/src/cairo-ft-font.c +++ b/src/cairo-ft-font.c @@ -2393,7 +2393,11 @@ skip: done: free (coords); free (current_coords); +#if HAVE_FT_DONE_MM_VAR + FT_Done_MM_Var (face->glyph->library, ft_mm_var); +#else free (ft_mm_var); +#endif } } x/refs/?id=a5a90a98d8664c92bb8d744abfde6c68c342d364'>refslogtreecommitdiff
path: root/tests/texlive.scm
AgeCommit message (Expand)Author
2021-03-06tests: do not hard code HTTP ports...Previously, test cases could fail if some process was listening at a hard-coded port. This patch eliminates most of these potential failures, by automatically assigning an unbound port. This should allow for building multiple guix trees in parallel outside a build container, though this is currently untested. The test "home-page: Connection refused" in tests/lint.scm still hardcodes port 9999, however. * guix/tests/http.scm (http-server-can-listen?): remove now unused procedure. (%http-server-port): default to port 0, meaning the OS will automatically choose a port. (open-http-server-socket): remove the false statement claiming this procedure is exported and also return the allocated port number. (%local-url): raise an error if the port is obviously unbound. (call-with-http-server): set %http-server-port to the allocated port while the thunk is called. * tests/derivations.scm: adjust test cases to use automatically assign a port. As there is no risk of a port conflict now, do not make any tests conditional upon 'http-server-can-listen?' anymore. * tests/elpa.scm: likewise. * tests/lint.scm: likewise, and add a TODO comment about a port that is still hard-coded. * tests/texlive.scm: likewise. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Maxime Devos
2020-01-17import: texlive: Avoid uses of '@@' in tests....* guix/import/texlive.scm (fetch-sxml, sxml->package): Export. * tests/texlive.scm <top level>: Call '%http-server-port'. ("fetch-sxml: returns SXML for valid XML"): Use 'with-http-server' and set 'current-http-proxy' instead of using 'mock'. ("sxml->package"): Remove use of '@@'. Ludovic Courtès