From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4496 invoked from network); 12 Jul 2021 23:32:05 -0000 Received: from tb-ob21.topicbox.com (173.228.157.67) by inbox.vuxu.org with ESMTPUTF8; 12 Jul 2021 23:32:05 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob21.topicbox.com (Postfix) with ESMTP id 36238222E8 for ; Mon, 12 Jul 2021 19:32:03 -0400 (EDT) (envelope-from bounce.mMcaf942981401d70c27d13d7e.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id EB0562CBE4F2; Mon, 12 Jul 2021 19:32:02 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:to:subject:in-reply-to:message-id :references:mime-version:content-type:from:list-help:list-id :list-post:list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1626132722; bh=coyOI0efFrob2cmh qHuSl+tiEbHfbKDQhxHf3yfljqc=; b=DCKc0FV/LZkfHyUXzgLMbUmVBhwFaUP2 q4qlHk3QDgOi/AMRJJnragMtIrOt7e5uYvEqxVLUe1GjHYrGB/Hc4Pda65wzzns9 GoYSLVEFVq1CCKr0Pwg2CrHcGSiDZ9ez9I6nkKfWs0X+qbecSKcjThLtFpl22zMi iP5Tn9pfEwo= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1626132722; b=rzVCbRbJvuWBHiLBLOQNRcyM0PDp9SW5PK5hrwYZaIC1pS29qQ sjOFkH7IsmAAwfmSAic0IesgOmhRn6Hbo4DqgzKvnZTxzhXQ81XFSZPdLPZYdwOR MhtWJVGuX7a+Fl+26urh4a8pp0UNkw6OSWpilWtEpNXQFMXWF0WhBeoQY= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (No BIMI records found); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:to :subject:in-reply-to:message-id:references:mime-version :content-type:from:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=HNqws/o3i0Vn7TcuYruEuzee4hdD59YuXruWhB4tyXw=; b=A8Ab5h7hqVyV 8+k5MCt4dzY0dJGCzLB2r1//qmrVNS4mh1Q8WGNa6YtHsvO2kwXPGo21b1IKxOZm Pg4nVFgYmGHpixcl/Oma9WxKPsNogTDG7kpkb37iBBGwt7ETHLsb9AnW7u4R4MZW bv9XxRDd3XHz3tnzCyKVq4MpRyQycmg= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 92CF12CBE0F2 for <9fans@9fans.net>; Mon, 12 Jul 2021 19:31:51 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id D2212CEF8DD; Mon, 12 Jul 2021 19:31:51 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1626132711; b=UalKBCA8jY7otjZbDo3GwfXOE6TnY3GCpV60UapYvSZxOFh1YU Gl6UKWPlsXTlkDHuT9q9aWdag7Ypr/aoZOTGNT3rVrVWZDmd2zY0ClIHSi6gBSCF IxzeaffRDX9VIjnujCxKOO/+jOUEIQKf5Qy8URD9IbwZ0fBr49wedYH4DtZJ8XlG /ieieqHM22Y/WAvVhHKZDXj4NlOko/N81IEii2FhtyjP+f9ODvfBnjM64e7G6Z3k vF/Bzn6C2Fg2TT2/CUHXGOQD5B3Np2J5qKzV6c/SXHvVriy8ullbu81TxCH/dH+O sI0o+GOKbYJj27gpCu2zfMVitOrz0bOkW2cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:in-reply-to:message-id :references:mime-version:content-type; s=arcseal; t=1626132711; bh=bHuNiV8xPQFnQ3dTLE7c3E2GH1Iad+akC+kqDKFNdvc=; b=imyRsc1PpVH7 dS9SSJnhZJMP9wrQhgQpK9VyL9Ed2lhJks/uEKLSCUegaX9v9Rv8X4FJU99+9MEV BlorbG189/oMHSUkJ1zKAmBKh67pQfgA2XB0rl6jk7e0vtdkNWaER/zsTfT/V071 DgVgiX9nRXm9XEizXND/pr4fjxCZAyLZD5cbdusq87GB+dzBGLXslEr2YPvDy1To ri5jxKbMm1SZL9gbqlUf+7PyEKZ9jIYWKmlQppCVhatyAk8RRlUFwy19qPvdT03F fgzElVIc4/Y1znDzn/2svtZ+FBWjmsK8UcMWutJRIRJAOHQ1p5WNesIarDfehJVC AgzqNR0VOA== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (No BIMI records found); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvgdelieculddtuddrgeduledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghn shhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtne cunecujfgurhepfffhvffujgfkfhggtgesthdtredttddtvdenucfhrhhomheprggurhcu oegrughrsefufffhrdfqtffiqeenucggtffrrghtthgvrhhnpeevleehtddtgfetieekud dthfehieduveekheejleetgfdtffetvdeujeevtdejhfenucffohhmrghinhepshhouhhr tggvfhhorhhgvgdrnhgvthenucfkphepvddthedrudeiiedrleegrddvgedpvddthedrud eiiedrleegrdduieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvght pedvtdehrdduieeirdelgedrvdegpdhhvghlohepmhigrdhsughfrdhorhhgpdhmrghilh hfrhhomhepoegrughrsefufffhrdfqtffiqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sdf.org: 205.166.94.24 is authorized to use 'adr@SDF.ORG' in 'mfrom' identity (mechanism 'ip4:205.166.94.0/24' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="adr@SDF.ORG"; helo=mx.sdf.org; client-ip=205.166.94.24 Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Mon, 12 Jul 2021 19:31:51 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from sdf.org (IDENT:adr@sdf.org [205.166.94.16]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 16CNVnrv018324 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Mon, 12 Jul 2021 23:31:50 GMT Received: from localhost (adr@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 16CNVnBt023604 for <9fans@9fans.net>; Mon, 12 Jul 2021 23:31:49 GMT Date: Mon, 12 Jul 2021 23:31:49 +0000 (UTC) To: 9fans <9fans@9fans.net> Subject: Re: [9fans] pngread: alloc chunk's length In-Reply-To: Message-ID: <6c633170-ba92-52f4-5244-28fa6c7302b@SDF.ORG> References: <28C2E353AF3CC6A064D8A1A403C1E1C2@eigenstate.org> <1fbcd31c-c6f-7991-951-3f1daae8d895@SDF.ORG> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format="flowed" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 58435b10-e369-11eb-a5ae-8c1228b1136b Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNGE3MTRlZDE0YzUwNzY3YS1NY2FmOTQyOTgxNDAxZDcwYzI3ZDEz?= =?UTF-8?B?ZDdlPg==?= From: "adr via 9fans" <9fans@9fans.net> List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mcaf942981401d70c27d13d7e:1:PzqivXPnhyOZrldx8c9FCPKr6hgoskI4-DPMQCLvLQw On Mon, 12 Jul 2021, hiro wrote: > Date: Mon, 12 Jul 2021 20:04:23 +0200 > From: hiro <23hiro@gmail.com> > Reply-To: 9fans <9fans@9fans.net> > To: 9fans <9fans@9fans.net> > Subject: Re: [9fans] pngread: alloc chunk's length >=20 > it's always useful to have the testcase available, for others and for > possible future regressions There is nothing to test, really, the length of an IDAT chunk can't be fixed (At least you want to allocate more than 2GB...) If a png file has a IDAT bigger than your constant, you are screwed. You haven't noticed because the majority of encoders use small chunks, but that doesn't mean that the code is right, is not. If you want to test with a png file anyway, take a big image and use some tool like http://optipng.sourceforge.net The resulting file will be possibly smaller, but the data stream will be encoded in one IDAT chunk to save space and reduce the overhead of processing numerous IDAT chunks. But you'll just get getchunk needed xxxxxxxx, had 1000000 ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T4a714ed14c50767a-Mcaf94= 2981401d70c27d13d7e Delivery options: https://9fans.topicbox.com/groups/9fans/subscription