delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/06/24/14:22:52

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A11A3383E806
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1593022921;
bh=tsKKpSPSDQNnKl4cEmYtK2JiMw1LcuqG4wmYcBB1+Qg=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=GRkiPaV0RbfV34wLl+TjAKIF1tslBG+PRduqH+TUYUtNwE+e7D+XHMFx+ALkV5uqG
Xq7YZmX7QH60CsJ/S1wF4niYBHnGm7iz50Bc8ALtmtprxxo6myo7nVJMap3Ok0jbdX
qtHlI5gV7ViXmfqUoUlqbr10eRJGFlRzv6Uarrl4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5FB05386F81C
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:subject:to:references:cc:from:message-id:date
:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=gEkj69kSkWl0VlzkKQiGmU85Nq3dQJncsvzdZ4tfsKs=;
b=PL3Q7mTAdh5iggDRiPFiL1zO8MS6v+hle0g0dAsz0OEl7U+Ky311jtAFvmSuqloxjF
CXhQ1n5WV+Hsx9hZbl6h05fdY7nQRFtPVIQ5cFIhyBPYcTiaKxs5PGAm3ae12ez6DyIn
bwUkPpkVmPrV2Wj1NU3I89/QvZRbwpthTp6bsm0cVajcCtrCizYPlR0JQpFjNT/abifT
KzMzfs7K4aMoW4VZ/TrM8zB6d2hjP5IW4kmVCPt6e1d/SJJHQxcOtKMJgWXAkox/T4/3
TVeTdwTQEmZYGzgh2Yhpe9a0KRNPaI+dZYV7giiMVbIXCnb8VbhaVUC1KvfMjhI8IUR1
qxtQ==
X-Gm-Message-State: AOAM5314eMvZU2bnAsaeBzPoxATaIY2F+E3cSEOtzWDSf0viMR0XmQyd
NfJIFF0OHGAZJQQEfKUxK7k=
X-Google-Smtp-Source: ABdhPJxA2m2p3q2pDkU4/uaZD0e/4BYo5clpvxktLGuDsHXsKAGDPm7TbxhqRi0Qnn3jf2j6Qp3TIw==
X-Received: by 2002:adf:fa81:: with SMTP id h1mr22470912wrr.266.1593022918378;
Wed, 24 Jun 2020 11:21:58 -0700 (PDT)
Subject: Re: ImageMagick maybe broken by libgs9 upgrade
To: cygwin AT cygwin DOT com
References: <241354771 DOT 1752406 DOT 1592876221936 DOT ref AT mail DOT yahoo DOT com>
<241354771 DOT 1752406 DOT 1592876221936 AT mail DOT yahoo DOT com>
<92b51d45-55b5-33e1-c1c7-883094b6b09b AT cornell DOT edu>
<134f371b-8989-4ed7-2209-acc486960d65 AT cornell DOT edu>
<0dd00cea6dd675142ca617d2caf5d818 AT mhoenicka DOT de>
<3d65999c-c82c-0b75-925b-d799a7e8f98c AT gmail DOT com>
<18a9c001-03cc-1538-99aa-7ea87630abe5 AT cornell DOT edu>
<df040576-8ce9-51ac-8c92-97e44ac9dedd AT cornell DOT edu>
<6744da4c-ed95-ca9b-3e07-2adc7ea9f36f AT gmail DOT com>
<a1918811-4766-4383-7469-3f6e6921dc3b AT gmail DOT com>
<094cb004-e88e-4b4c-89ce-e8c8791c3f9e AT cornell DOT edu>
Message-ID: <7577f575-9a66-bdb6-1cb9-30a6f9e305ad@gmail.com>
Date: Wed, 24 Jun 2020 20:21:56 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.9.0
MIME-Version: 1.0
In-Reply-To: <094cb004-e88e-4b4c-89ce-e8c8791c3f9e@cornell.edu>
X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Cc: emilyw AT yahoo DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 05OIMRrM016920

On 24.06.2020 12:24, Ken Brown via Cygwin wrote:
> On 6/24/2020 1:30 AM, Marco Atzeri via Cygwin wrote:
>> On 23.06.2020 23:02, Marco Atzeri wrote:
>>> On 23.06.2020 22:56, Ken Brown via Cygwin wrote:
>>>>
>>>> I think I've found the problem, although it will take patching and 
>>>> rebuilding ImageMagick (which I haven't done) to confirm that I'm 
>>>> right.
>>>>
>>>> In the ImageMagick source file coders/ps.c:237, there's a call to 
>>>> ghost_info->new_instance, a.k.a. gsapi_new_instance (see line 214). 
>>>> The documentation of the latter in the ghostscript sources 
>>>> (psi/iapi.c:57) says that the first argument pinstance should 
>>>> satisfy *pinstance == NULL in the first call to that function.
>>>>
>>>> But *pinstance in this call is the variable 'interpreter', defined 
>>>> without initialization in ps.c:191.  As a result, **pinstance 
>>>> contains garbage, and the program eventually crashes when it tries 
>>>> to dereference a garbage pointer.
>>>>
>>>> The fix, if I'm right, is to initialize interpreter to NULL in 
>>>> ps.c:191.
>>>>
>>>> Ken
>>>
>>> Noted.
>>>
>>> Regards
>>> MArco
>>>
>>
>> a test ImageMagick-6.9.10.11-3 is going up.
>> Let me know if it solves the problem
> 
> That fixes it for my .eps file.  I didn't think of it before, but a 
> similar patch to coders/pdf.c:201 will be needed for .pdf files.  I 
> won't be able to test that because I haven't found a .pdf file that 
> exhibits the problem.
> 
> Ken
> 


test version 6.9.10.11-4 is going up.

If Emily tests with her pdf files, it will be nice

Regards
Marco

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019