delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/06/24/06:25:26

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7BD663938C33
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1592994281;
bh=NYFZBi424UfBFfL9tP0+yhgm8YpDjv/go7H9wHnpNXY=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=XLaidfi2xKSXqtF99hJwryiUoBQwA7QlX8FwogFt5cOqp9eonOhTTwLEXEQjiXR7y
5fwJcg3V14mR8krlLxANxmqjPO2KxNVo7ZIe2LGEftBums7nBrGcueaPxXGQ91kurX
UabwswrsHXONbTSgllEwwkV0vW6Lf8s6MLENCBkk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 72A943893648
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=PTeHipcXLMFhloOIuXmEp4sdJdYNQGTHhnqnG5uUJPCI41W2qfoNV82Gg6cM/mlEWX19eyCBgqK7Bqln1I2FleuwHb95WnNmM1lavDOyhre6t0ByeIo5qz/Tt8qMwsjb1OBu5KFvhoTmpWywCy5p1Xs2ImWLS+jazDpjUS8YEiCGan8Hp6pOgRM0qwpzcRL8B3ax5//ZryitKxk/HbI1UVFlX7+h4MKU6t48Omc1EyZMFNszLG74Ho0bHKkLmNDDU9wnywmQC0+9nAgJV+Ah5SiTkhBv3tMY9rV/A3YTVwZx3r0KMT6svxcZbzoDPUthHRdqCJFs6PjQsKPXFlYBnQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=oqle7E8nlEPYYJtBS3uM1Im3GG0A+++KaVPJZ0qzelQ=;
b=b7vugf0SbRnG8C1wF4XautI3hSV3ksJnJxUz5ED3KEj+q2sz4LO4FTu/2v26OU50YC+UrLX8dsx+mY+zuRwcIn8RQ7rFWN+Yyg7G6FVda6ghuVCg63VQa0Wwfp50RneCQ9+3tozpVU6yQkLs62u8E9P8VMOEpabfq6JqLjP3TejUJG3VS5o+NM4zfhmAvrgMTDInK+vujK+FsUgOS187MXDI0Z/2vVJTgbs8c2ImdSIcZaj0EV6Ea9S97j/ejtCDaBvL7EholGC0cRhYsCgCBMqvcZvLt+oSLGH9DnHk/eokPlzMQMSHhUTNu0Dzv2bpB58Eg2iiOlWVYPzpOQHmZg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
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>
Message-ID: <094cb004-e88e-4b4c-89ce-e8c8791c3f9e@cornell.edu>
Date: Wed, 24 Jun 2020 06:24:34 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.9.0
In-Reply-To: <a1918811-4766-4383-7469-3f6e6921dc3b@gmail.com>
X-ClientProxiedBy: BL0PR02CA0144.namprd02.prod.outlook.com
(2603:10b6:208:35::49) To BN8PR04MB6163.namprd04.prod.outlook.com
(2603:10b6:408:5c::27)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-Originating-IP: [68.175.129.7]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 5db7018c-673a-41df-5800-08d81828cb42
X-MS-TrafficTypeDiagnostic: BN7PR04MB3956:
X-Microsoft-Antispam-PRVS: <BN7PR04MB39560A6811746F662BA44A61D8950 AT BN7PR04MB3956 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:530;
X-Forefront-PRVS: 0444EB1997
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: AX5x4kq1GL2tHOwwf5oKtkyhbM6cGYZZtqCKtzWachF/60U+gsobXl67Xw09/SItNuAHAvTK/R87ergnVy8cGX7RyHiaHA2mgDJbnFJIXiG8BRZMl3giUF+OhlnPO+CsUrJVHVSxmUlyGMYfGGS5TPlZyzxH/SyKVL595lhEYrSLGHEsvUjiieqjGw8edMxon5jqJ5QS4vsOFPllRZ5T1dliSy48NWG6l0EvJchO/6DnkzLCufrp9R1Llx8i2wgQKBfZQVwNi7kyYNcP49REDDs5xVMAOPA4foaTpuB0A9Yyxvsl49Emmk5eiw9BZEYKkr8T0Sgqt62DccqZHsEQftrXeO3pgqHxDvQEeiUl2HK8hi+9wEJw5ei6fJUvw/j3
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:BN8PR04MB6163.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFTY:;
SFS:(4636009)(136003)(366004)(376002)(396003)(346002)(39850400004)(83380400001)(52116002)(478600001)(53546011)(5660300002)(6486002)(2906002)(86362001)(66946007)(26005)(31696002)(66476007)(16526019)(186003)(75432002)(316002)(66556008)(786003)(31686004)(2616005)(8676002)(6916009)(8936002)(956004)(36756003)(16576012)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: rMC05Od9rTiho6m9ag8brIGgBpz8bZ/IAwls4lnk17WHZT4PUv1fKSoCeLPwp6NWybdV+YCwwaaRjr64NSWw6b2cz45Qz3ksoKXGk84Y00unf0WFKnIml9543IhR0nXf45AlRox27nk3vNpNl/2a+KMAEPiO7q7KQNSoiQGVxFgeQ6ONNxkAgw/2h7L9R9+itNYWzSAY0rGZTJx+xvl4rzEvU2r7I8YT4WFjiqhPNcM50qfZLC6ZlHH4LZ2QIZ1k9v+lHLmq1WZVJa49fNl53X7uhusMHpHl/c7enyFRMv28azCC94Spnqkp4X6UaA0jpNMpFRsx+F6YeNpB+pSpzh3gAz6NN+3lPvC570ANBr2W/0Cctakd90kOtjWzSBcp6M4vR7KFyTdMdam5tYrUUR1RXvbID8OTgAydePCb+HW/knhMNwVJm2SP4oRMwDpZCK8AU03XB2qMKpzXgmO6VD6KnAFo5REcv5J/ONmnZWQ=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 5db7018c-673a-41df-5800-08d81828cb42
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2020 10:24:36.2565 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: H4wEy88ftMrmV3KdvPRwQbonHoKpPOsN4uzEbcdmdAOZaOeHkpl8o1Wb1RGFoCtAHuYbUzC67YOgtEpMISEk/A==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR04MB3956
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00, DKIM_INVALID,
DKIM_SIGNED, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
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 05OAP8j1008312

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

Ken
--
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