X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B23FE39878AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1593024420; bh=ZzqzEgPpRjRfXg8GkKKYY3IO5NzywekXWHckdomECcw=; h=Date:To:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=iPqsZaIwq3sS2q1vVHXaKIj27qYPbAwnT2K4Uwl813EHuO7/6QCkt7Qnx4dzWz3yQ Y7g5uH8jmchSiO2JutTMfF937/ijeLbnmsRdqHZah0VZ1rtaIfgsnstdHv5qi+Kr2q eguo7Sj5CYTxcyWGOuvS7SFfQS0oMSuca4S/dkxo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 933E03840C25 X-YMail-OSG: ukMVeqEVM1l4oary8pjcfuzUbQphxOJEMGOq_JzaNFMKpMC09GrNndL5IUuPbB9 WjBH02PBIkLsJDYfpVKZ2mHeW8ghKXVAgixdR8d0EvzSs84SYcHUZmu0OcE4GJyazelPBl6spHyx 1o7ezCf8XKpz6Q8CwTcKvHph9_HnkWeLAfIEIEFAmjeubQc_2EyrgYtwHyTakxGCzlogQ1ObAqHc n17NCYHsDUqjHErjBv5Rhhs7b.nYs.pPde5EtjKWJA8Qufxd2kzFuzQbKh8fO_7ltLpxfr65_aUr mILRPfGNAIXRnAM2a_FcC9SqdUIBzERXpzpjLmhUmHo.CVzyTzaojmvN.uxkpPuEHvTJaLK0QQDY 5Sc5dzjPPwgxzyeG8Llv8Xbnh4B.zPd9HKvFR4zXnkfFNM.whdQyL3O.N4Cc0Klg6Vi1jyxsH_pW WP5eh3yX3Uo5qm1k7pqYTIoFAR_xvJCklBkDyF3ssjfVezLyB2mkbYQY8XsS4KXd5tWaAwTK3osY 0zt4691k4LCQvjEOWDHJzpDU8MZvJjUW5nuptFUYGShuzmNpqUVwI.aEGeZeyqwoxukbx4xhJHKm Ab.HfsK5gTkjg6kjQWQluoq1q7p7zt4_lMNzcOugch6rLm19GvZhwKveaSnXoWaDdWqmtO1izhTi 7x1i2SA1dablKY8fXkB9ZqppG4oddP21ZDY4l.kCJZT2FljGkbLqubbE0MJXq3Yaxce2MVOK9Oj7 jtoLPxAI_cBBK8M75O6l.CoSpVCA4t3OXJjzT8jnmnFSrozlK3im20NNlxzzMITvz7rpg7NuL9VI L0j6Q5QCioPX5SHEOs5r5aiRG51bT.BcgyrdMfJueGoxHf.5qzhVLztkgPwuf3OEP9kWNxjFXvNn 23U7.JUFs3cIJOdXh2AJKZ8FwaJVhLzp95hBLgIq.PbyEYBbxZ9Gsj7QA1HBaggTzdm_1IA.EUs2 LMEqAsYYOimfTz97kgcQLfofa3_At0yCd6EjXhTKjoQv3pn5bTX9OyLVLUlRFlxGTJKuV1E9tOBi LO5NXZT1hipf7.LpqGZthBTXNEbvDPQXnLgs3FB0dzT9XRZ7x4K5qtrU.NQ_afYx7zGznZVxeljm v0V9VImMeo8Pjtr_IOiQZySalQcUJdgQHuQT_VjhrZvI0qydTUOhZx7C3wVYMZj10WZ7L6S4ecFT MOCtE_IT8UiMDomV82sK_EeDu5FASvfPVQ7N2Bk..OiunSv81eV1LgakRhZegSZbV2jqOWGFK53C uFp6WyHTERWdvyh9UhhQzVx4T1TMwBUPmUlf7hDRwD0rk0CTLQxV5K43v6eD7tA5TqADspHmfqh_ iIzQsF30Zmrt5G6CXuZW1h9bu Date: Wed, 24 Jun 2020 18:46:54 +0000 (UTC) To: cygwin AT cygwin DOT com, Marco Atzeri Message-ID: <1697153505.2549743.1593024414719@mail.yahoo.com> In-Reply-To: <7577f575-9a66-bdb6-1cb9-30a6f9e305ad@gmail.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> <6744da4c-ed95-ca9b-3e07-2adc7ea9f36f AT gmail DOT com> <094cb004-e88e-4b4c-89ce-e8c8791c3f9e AT cornell DOT edu> <7577f575-9a66-bdb6-1cb9-30a6f9e305ad AT gmail DOT com> Subject: Re: ImageMagick maybe broken by libgs9 upgrade MIME-Version: 1.0 X-Mailer: WebService/1.1.16138 YMailNorrin Mozilla/5.0 (Windows NT 6.3; rv:77.0) Gecko/20100101 Firefox/77.0 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Emily via Cygwin Reply-To: Emily Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 05OIlS0d019741 Hi Marco, I don't see that one, do I need to add a special download site?  Thanks! On Wednesday, June 24, 2020, 11:21:59 AM PDT, Marco Atzeri wrote: 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