From mboxrd@z Thu Jan 1 00:00:00 1970 From: yoann padioleau Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Message-Id: <10C19402-24DC-4B30-AD02-F83E12362D5D@gmail.com> Date: Tue, 9 Dec 2014 16:21:03 -0800 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: [9fans] memory bug in 5l Topicbox-Message-UUID: 35ee799e-ead9-11e9-9d60-3106f5b1d025 in 5l/obj.c#zaddr() there is: case D_FCONST: while(nhunk < sizeof(Ieee)) gethunk(); a->ieee =3D (Ieee*)hunk; nhunk -=3D NSNAME; hunk +=3D NSNAME; I think it=92s a copy paste bug, it should be sizeof(Ieee) instead of those NSNAME (or even better the whole code could be factorized in a call to a->ieee =3D malloc(sizeof(Ieee));