Article View: gnu.emacs.vm.bug
Article #483Re: buglet (?) in qp-decode.c
From: Ralf Fassel
Date: Tue, 08 Jul 2008 07:17
Date: Tue, 08 Jul 2008 07:17
20 lines
1452 bytes
1452 bytes
* newsspam5REMOVETHIS@robf.de
| Does the following work for you?
--<snip-snip>--
| --- src/qp-decode.c 2007-01-12 01:50:26 +0000
| +++ src/qp-decode.c 2008-07-05 21:23:47 +0000
| @@ -63,7 +63,9 @@
| continue;
| } else { /* *stop == '=' */
| stop++;
| - if ((d1 = strchr(hexdigits, *(stop))) &&
| + if (*stop == 0) {
| + continue;
| + } else if ((d1 = strchr(hexdigits, *(stop))) &&
| (d2 = strchr(hexdigits, *(stop+1)))) {
| c = (d1 - hexdigits) * 16 + (d2 - hexdigits);
| putchar(c);
Yes, it does.
R'
Technical Details
Message-ID:
<ygavdzgj13t.fsf@gepard2.akutech-local.de>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<ygalk0ni65f.fsf@gepard2.akutech-local.de> <m2skuulbe4.fsf@consult.pretender> <yga4p7ahvjc.fsf@gepard2.akutech-local.de> <85prps58hn.fsf@robf.de>Show Full Headers
Complete Article Headers
X-Google-Thread: f6829,141bbfda3d9204c6 X-Google-Attributes: gidf6829,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ralf Fassel <ralfixx@gmx.de> Newsgroups: gnu.emacs.vm.bug Subject: Re: buglet (?) in qp-decode.c Date: Tue, 08 Jul 2008 09:17:58 +0200 Lines: 20 Message-ID: <ygavdzgj13t.fsf@gepard2.akutech-local.de> References: <ygalk0ni65f.fsf@gepard2.akutech-local.de> <m2skuulbe4.fsf@consult.pretender> <yga4p7ahvjc.fsf@gepard2.akutech-local.de> <85prps58hn.fsf@robf.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net iIlQGCcrjvoTxyi2/9qd0QuN1fXRlIPG9L5KJ14T7B8nhzOO4= Cancel-Lock: sha1:U/bh47E/7Aci+rwAbs/9ctwqkkM= sha1:TjN0BLYOUD/brcUUwU2MaHcJMbE= User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.5-b27 (linux)