From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.devel Subject: Bad decoded images Date: Mon, 20 Sep 2010 15:33:57 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1284989654 2271 80.91.229.12 (20 Sep 2010 13:34:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Sep 2010 13:34:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 20 15:34:11 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OxgVX-00068T-6e for ged-emacs-devel@m.gmane.org; Mon, 20 Sep 2010 15:34:11 +0200 Original-Received: from localhost ([127.0.0.1]:38698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxgVW-00057W-Iv for ged-emacs-devel@m.gmane.org; Mon, 20 Sep 2010 09:34:10 -0400 Original-Received: from [140.186.70.92] (port=60241 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxgVO-00057G-Gm for emacs-devel@gnu.org; Mon, 20 Sep 2010 09:34:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxgVN-0000UW-Dp for emacs-devel@gnu.org; Mon, 20 Sep 2010 09:34:02 -0400 Original-Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]:48972) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxgVN-0000Ti-3w for emacs-devel@gnu.org; Mon, 20 Sep 2010 09:34:01 -0400 Original-Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33]) by rose.easter-eggs.fr (Postfix) with ESMTPS id F200714035 for ; Mon, 20 Sep 2010 15:33:54 +0200 (CEST) Original-Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72) (envelope-from ) id 1OxgVJ-0006nc-Sl for emacs-devel@gnu.org; Mon, 20 Sep 2010 15:33:57 +0200 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130534 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I think there's a little problem with the current image code. If the image data is bad, nothing will raise an error. (image-size '(image :type gif :data "heya") t) =3D> (30 . 30) The only thing we can do is check the image size, if it's 30x30, then we know it's a problem. But that does not look reliable. Fix, anyone? =2D-=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkyXYsUACgkQpGK1HsL+5c2QrQCgq+gl07lDhUEO8eqVhHBHanHY BOYAn0aCmq9LyDAylbFHZrxwV5RTbQjO =j7UQ -----END PGP SIGNATURE----- --=-=-=--