From mboxrd@z Thu Jan 1 00:00:00 1970 From: yoann padioleau Content-Type: multipart/alternative; boundary="Apple-Mail=_14896340-8209-431A-AC4E-D55B1F1863C3" Message-Id: <82941AC9-C4B9-4292-9C6B-E0B0CAD4C3B6@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Date: Mon, 15 Dec 2014 13:20:31 -0800 References: <10C19402-24DC-4B30-AD02-F83E12362D5D@gmail.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: Subject: Re: [9fans] memory bug in 5l Topicbox-Message-UUID: 36eefdb4-ead9-11e9-9d60-3106f5b1d025 --Apple-Mail=_14896340-8209-431A-AC4E-D55B1F1863C3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Right, but the same code in 8l does the while loop, and most of the code in 5l does the while loop, so for consistency it seems it should also be a while loop here. On Dec 10, 2014, at 2:07 AM, Charles Forsyth = wrote: >=20 > On Wed, Dec 10, 2014 at 1:19 AM, yoann padioleau = wrote: > it should be while(chunk < sizeof(Prog)) >=20 > a hunk is always much bigger than sizeof(Prog) so it's the same as if --Apple-Mail=_14896340-8209-431A-AC4E-D55B1F1863C3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Right, = but the same code in 8l does the while
loop, and most of the code in = 5l does the while loop,
so for consistency it seems it should = also be a while loop
here.


On = Dec 10, 2014, at 2:07 AM, Charles Forsyth <charles.forsyth@gmail.com>= ; wrote:


On Wed, Dec 10, 2014 at 1:19 AM, yoann padioleau = <aryx.padator@gmail.com> = wrote:
it should be = while(chunk < sizeof(Prog))

a hunk is always = much bigger than sizeof(Prog) so it's the same as if

= --Apple-Mail=_14896340-8209-431A-AC4E-D55B1F1863C3--