From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#36773: 27.0.50; Accessing a cached SVG with eww can cause Emacs to crash Date: Thu, 25 Jul 2019 11:51:16 +0000 Message-ID: References: <87muh2cv40.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="217304"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Adam Plaice , 36773@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 25 13:52:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqcI3-000uQM-IC for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jul 2019 13:52:07 +0200 Original-Received: from localhost ([::1]:59026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqcI2-0007SY-6I for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jul 2019 07:52:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55053) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqcHz-0007SG-LB for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 07:52:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqcHy-0003M4-OA for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 07:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hqcHy-0003Lw-JM for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 07:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hqcHy-0001n0-Gp for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 07:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2019 11:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36773 X-GNU-PR-Package: emacs Original-Received: via spool by 36773-submit@debbugs.gnu.org id=B36773.15640555216870 (code B ref 36773); Thu, 25 Jul 2019 11:52:02 +0000 Original-Received: (at 36773) by debbugs.gnu.org; 25 Jul 2019 11:52:01 +0000 Original-Received: from localhost ([127.0.0.1]:38465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqcHw-0001mk-Ly for submit@debbugs.gnu.org; Thu, 25 Jul 2019 07:52:00 -0400 Original-Received: from mail-ot1-f42.google.com ([209.85.210.42]:42422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqcHu-0001mX-IW for 36773@debbugs.gnu.org; Thu, 25 Jul 2019 07:51:59 -0400 Original-Received: by mail-ot1-f42.google.com with SMTP id l15so51305715otn.9 for <36773@debbugs.gnu.org>; Thu, 25 Jul 2019 04:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sy5w2buTSak+dNEdZe4VVvcUWP5vxh8Hp9ug4Ao6ji0=; b=XP7qrmm6YOd2900zaMv9iKeEnoGBB/Iuvj5IJvhxIhJxSKnj9Q8onV15VyNq88dVc2 v1Cw7UDGUdA/wV5eu1RgcITUIfJZitq9b3DFKFc3I06QPJ8mBc4d15O2jG1oDyt128pR SqjxozrjQmmArsIGEm8NfhdakIPyygTnTHTLqtdtp4d++Z46VANGRMSqS3YiqKReGgXM 1Dnmm2cKLF4ODAxOsDKJWFDxIMVxwpOfZhLcGEbyY8AgKcITMX+S39LYi3uZA9UvNyae 0mW+85Ux2f6RW0D1L3UxkKSfTUZgOFHdy7vDnwkabzhHAvobxAw0S11yDLVMZcWLL++x R9SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sy5w2buTSak+dNEdZe4VVvcUWP5vxh8Hp9ug4Ao6ji0=; b=Ypbfu6+ixV0yq4S9m+1EiaWV8+TJGFT/0lAzsbCCg82xeU6wLt5yrYqic+hqrLzYl6 aomz67ZVsKVbHnsDH5hymy8EBia5OCHwqGyxLrP9Y5jl8WBGZbOkfyJE50cYymUMQ9el ZDLGyB2cHAxUB6s4zS76PnR9rgm3n1Yc4SrxSlN8cPRSRX/yNZw3eS7Tczi82LUg179N WEqJKBGTdTMdk8b83NwqeY+59ORB3fHQ697PVUX62Qylqz7b8pqFIjaTzwFifH22NAjm oCKMcnMxOFfF8JCw9K8UPanOu8ZahCTyCkMPN+mtAcQ1y77zOCOeIyfxUgFdNZ0xum2+ 8a/w== X-Gm-Message-State: APjAAAUswyyFmfftMXe/FwZoKXar93JFaTDPdYF2g3egH0TnXKPOo2k3 NCRvr0GUPL2licA8M2CQs34eZFiMSPmdO85GjPo= X-Google-Smtp-Source: APXvYqxPb71OJ3G/+dFKoIysbN7sqVB4UBvCmZDRPZqSZpXa909470gTnc4m/hqvLjhvOPvhnW+LnMRv3O2uiM4sVEQ= X-Received: by 2002:a9d:7352:: with SMTP id l18mr2400139otk.292.1564055512921; Thu, 25 Jul 2019 04:51:52 -0700 (PDT) In-Reply-To: <87muh2cv40.fsf@mouse.gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163695 Archived-At: On Thu, Jul 25, 2019 at 9:38 AM Lars Ingebrigtsen wrote: > > 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. > > Perhaps url-store-in-cache should take a parameter to remove the > Content-Encoding header (i.e. "gzip")? It should really be up to the > program that uses url.el (i.e. shr) whether to cache the data or not... I misread what you wrote at first, but I like my misreading better: url-handle-content-transfer-encoding modifies the message, but not its headers. Why shouldn't it do both?