From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#14345: 24.3; shr-insert-document crashes gtk-emacs Date: Tue, 07 May 2013 21:38:28 -0400 Message-ID: <96y5bq6yjv.fsf@fencepost.gnu.org> References: <87bo8rihxe.fsf@zancas.localnet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1367977146 320 80.91.229.3 (8 May 2013 01:39:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 May 2013 01:39:06 +0000 (UTC) Cc: 14345@debbugs.gnu.org To: David Bremner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 08 03:39:04 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UZtLR-0004k3-NL for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2013 03:39:01 +0200 Original-Received: from localhost ([::1]:41527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZtLR-0002iv-BY for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 May 2013 21:39:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZtLN-0002in-Rv for bug-gnu-emacs@gnu.org; Tue, 07 May 2013 21:38:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZtLM-00034o-UE for bug-gnu-emacs@gnu.org; Tue, 07 May 2013 21:38:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZtLM-00034g-Qv for bug-gnu-emacs@gnu.org; Tue, 07 May 2013 21:38:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UZtMQ-0003dc-0c for bug-gnu-emacs@gnu.org; Tue, 07 May 2013 21:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 May 2013 01:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14345 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 14345-submit@debbugs.gnu.org id=B14345.136797717713932 (code B ref 14345); Wed, 08 May 2013 01:40:01 +0000 Original-Received: (at 14345) by debbugs.gnu.org; 8 May 2013 01:39:37 +0000 Original-Received: from localhost ([127.0.0.1]:33330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZtM0-0003cf-M9 for submit@debbugs.gnu.org; Tue, 07 May 2013 21:39:36 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:41216) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UZtLy-0003cY-9L for 14345@debbugs.gnu.org; Tue, 07 May 2013 21:39:35 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UZtKu-0003pC-DH; Tue, 07 May 2013 21:38:28 -0400 X-Spook: e-cash munitions afsatcom Becker UMTS Adriatic MIT-LL X-Ran: sB~t}q<_Vy_Lawp'1G0DT8PwKg@^3hCh9cMV?rev] (Glenn Morris's message of "Tue, 07 May 2013 21:35:16 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74062 Archived-At: Glenn Morris wrote: > Whoops. I meant to say: *** src/image.c 2013-04-07 04:41:19 +0000 --- src/image.c 2013-05-08 01:35:41 +0000 *************** *** 7273,7292 **** /* Clear the part of the screen image not covered by the image. Full animated GIF support requires more here (see the gif89 spec, disposal methods). Let's simply assume that the part not covered ! by a sub-image is in the frame's background color. */ ! for (y = 0; y < img->corners[TOP_CORNER]; ++y) for (x = 0; x < width; ++x) XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f)); ! for (y = img->corners[BOT_CORNER]; y < height; ++y) for (x = 0; x < width; ++x) XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f)); ! for (y = img->corners[TOP_CORNER]; y < img->corners[BOT_CORNER]; ++y) { ! for (x = 0; x < img->corners[LEFT_CORNER]; ++x) XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f)); ! for (x = img->corners[RIGHT_CORNER]; x < width; ++x) XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f)); } --- 7273,7297 ---- /* Clear the part of the screen image not covered by the image. Full animated GIF support requires more here (see the gif89 spec, disposal methods). Let's simply assume that the part not covered ! by a sub-image is in the frame's background color. ! ! Note that the corner position can be outside the screen, so take ! care not to go beyond the screen boundary (bug#14345). ! */ ! for (y = 0; y < min (height, img->corners[TOP_CORNER]); ++y) for (x = 0; x < width; ++x) XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f)); ! for (y = max (0, img->corners[BOT_CORNER]); y < height; ++y) for (x = 0; x < width; ++x) XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f)); ! for (y = max (0, img->corners[TOP_CORNER]); ! y < min (height, img->corners[BOT_CORNER]); ++y) { ! for (x = 0; x < min (width, img->corners[LEFT_CORNER]); ++x) XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f)); ! for (x = max (0, img->corners[RIGHT_CORNER]); x < width; ++x) XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f)); }