From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 58A91388C00D for ; Wed, 24 Jun 2020 05:30:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 58A91388C00D Received: by mail-wr1-x432.google.com with SMTP id j94so958123wrj.0 for ; Tue, 23 Jun 2020 22:30:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yBlZwxHY88+CHhbQCDBnGaeYHxU0IXqc9ETVfNea2gE=; b=AsqHMDusUDFOGvP6Lvnp2jmtoudB/bAHVOue8F06/ffue89kGFwOD2yBysoeq++NFE +r4vhN3BTubpOzazefW2xEWva5KleE8Szurska9jlSZGjk8UeLHxIERJh5C2cWfLXbur ibi7qYSvJhF664MREPEM8UhmVdQjJ3OeF5JeS6sFKESqT7qXLwrGuOUrI91l//mIW7DX lRErPE9UibmsmyKX0si5Q7jYLLG8n7kzCEpV9vFS8/TTbdFhADKgw+4Kxja0dV0y27Zx ji6rFSGZiNVTg9r7iHUj26+JPwzj9cJ63jw+xcleJTmsnZHdif2r/a7N8Kzetmwwftpn aNfQ== X-Gm-Message-State: AOAM532nPoQfAS2seIrvkuyZf115vAU8ChkW5/UILsfh+Ug7q8y/DLRQ +gjMusnhiKNWfIaxcG+ePlaEQurN X-Google-Smtp-Source: ABdhPJyWacyk+RglFLDmW7GuETNywvT1oAgzj1XCGrKXe8s9N4/qA0eq8Z2Tjb7TWK5wc4Isk3JbPg== X-Received: by 2002:adf:ec01:: with SMTP id x1mr7706902wrn.59.1592976652218; Tue, 23 Jun 2020 22:30:52 -0700 (PDT) Received: from [192.168.2.121] (pd9ed5fcd.dip0.t-ipconnect.de. [217.237.95.205]) by smtp.gmail.com with ESMTPSA id a126sm6220690wme.28.2020.06.23.22.30.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Jun 2020 22:30:51 -0700 (PDT) Subject: Re: ImageMagick maybe broken by libgs9 upgrade From: Marco Atzeri To: cygwin@cygwin.com References: <241354771.1752406.1592876221936.ref@mail.yahoo.com> <241354771.1752406.1592876221936@mail.yahoo.com> <92b51d45-55b5-33e1-c1c7-883094b6b09b@cornell.edu> <134f371b-8989-4ed7-2209-acc486960d65@cornell.edu> <0dd00cea6dd675142ca617d2caf5d818@mhoenicka.de> <3d65999c-c82c-0b75-925b-d799a7e8f98c@gmail.com> <18a9c001-03cc-1538-99aa-7ea87630abe5@cornell.edu> <6744da4c-ed95-ca9b-3e07-2adc7ea9f36f@gmail.com> Message-ID: Date: Wed, 24 Jun 2020 07:30:50 +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: <6744da4c-ed95-ca9b-3e07-2adc7ea9f36f@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.3 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@cygwin.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: , X-List-Received-Date: Wed, 24 Jun 2020 05:30:55 -0000 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 Regards Marco