bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36773: 27.0.50; Accessing a cached SVG with eww can cause Emacs to c


From: Pip Cet
Subject: bug#36773: 27.0.50; Accessing a cached SVG with eww can cause Emacs to crash
Date: Wed, 24 Jul 2019 13:24:46 +0000

On Tue, Jul 23, 2019 at 9:14 PM Adam Plaice <address@hidden> wrote:
>
> I've attached the backtrace.

Thanks. This seems like a librsvg bug, since it returned a NULL handle
but no error.

As for the other bug, it's a little tricky: shr calls
url-store-in-cache after url-http-parse-headers has decompressed the
file, while url-http-parse-headers itself would (correctly) cache the
uncompressed file if it were configured to do so. It's not quite clear
who's at fault here.

IOW, there's probably a conflict in existing cache directories: some
of them will store the compressed data, which won't work if it's
images; some will store the uncompressed data, which won't work for
HTML data.

I'm attaching a patch to fix the rsvg segfault, and another patch
which works around the url-http issue. However, I'm not sure how the
latter should be fixed properly.

Attachment: 0002-Cache-HTTP-responses-as-uncompressed-data.patch
Description: Text Data

Attachment: 0001-Don-t-crash-when-parsing-bad-SVG-data-bug-36773.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]