From owner-freebsd-hackers@FreeBSD.ORG Tue May 19 11:19:52 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DBBA3CF5 for ; Tue, 19 May 2015 11:19:52 +0000 (UTC) Received: from vps.rulingia.com (vps.rulingia.com [103.243.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps.rulingia.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1CD8E1AC5 for ; Tue, 19 May 2015 11:19:50 +0000 (UTC) Received: from server.rulingia.com (c220-239-242-83.belrs5.nsw.optusnet.com.au [220.239.242.83]) by vps.rulingia.com (8.14.9/8.14.9) with ESMTP id t4JBJHpZ085000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 May 2015 21:19:25 +1000 (AEST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.9/8.14.9) with ESMTP id t4JBJC0u045292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 19 May 2015 21:19:12 +1000 (AEST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.9/8.14.9/Submit) id t4JBIv3n045291; Tue, 19 May 2015 21:18:57 +1000 (AEST) (envelope-from peter) Date: Tue, 19 May 2015 21:18:57 +1000 From: Peter Jeremy To: Dirk Engling Cc: freebsd-hackers@freebsd.org Subject: Re: lam silently spills overly long lines Message-ID: <20150519111857.GD78998@server.rulingia.com> References: <5558752E.8030404@erdgeist.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cWoXeonUoKmBZSoM" Content-Disposition: inline In-Reply-To: <5558752E.8030404@erdgeist.org> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2015 11:19:52 -0000 --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2015-May-17 13:02:06 +0200, Dirk Engling wrote: >when working on a set of files quite large files I noticed that lam(1) >would suddenly start combining lines that clearly don't belong together. > >I tracked it down to a single overly long line (with overly meaning > >BUFSIZ from stdio.h) in one of the files and noticed that in I think a lot of Unix utilities assume that input lines will not exceed BUFSIZ and silently split longer lines. This is usually "good enough" so fixing it often isn't a high priority. >I also offer to write the patch. That would be wonderful. If you do so, please attach it to a bugzilla PR (and maybe copy the PR number into this thread). --=20 Peter Jeremy --cWoXeonUoKmBZSoM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVWxwhXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs01r8P/2QV8TYzVGhmfHghY38iCC9D xOeVZDGi2tGv69N65dGDQhWPvfb0LKWbCmrMcCz0um76A5FTmsAPKXELvScv9zr3 NHf4RxHEOgxXZ0y6eyFrb2PMk5cHk7QLYQOM/152RI+r3OkXXTLNBGI5lazEQ0tE sJgDwxFikQG5zeHErOgri3+YqoFyI4+Iqxyi6Xqct7St4fpVvdlNdSqrLsnQ0rpv AcM6lc+CAJt+USQrsjvQur3LOM3yavWCARyy85zvWjIgSDjSq/UxK0WFPhcg2k4s HYGHzHaw24/peJzow1ordIJGhYptR5+ICZWlvaWwH1rkTZuAHVu/FZoeejRe/QgW R8FG3SI20hS+fKIDfstC1j5usF1Eb5s0FDfAvoefMlREWKPpV7g9jz7mEhuJG9v8 boSwr+jYHIPRHNMTI4S/HqCJtm7BN2Iu403g8FoIitnHArV2Qe8C50MGYdgUJDt2 NSZVgHddAKpIvxWidLNni+GLSc3LJhTYfP8G5kNxjEms1D5scCRNjIy+K5NwJKJV QnLdIHD9MmIn3gyWUGpNIQzqv5iRolwnqGLssjXZYvbJpqvWDNtSBE2Loce1GFbg V8KAStcMHqLj0amrCc1vXT+s7f6yJJjcWnuYAzLJrY5+rPyA8/FHFZw3K9yiF9gq 8K/Q9g13mEEXw45Qpp60 =rKlN -----END PGP SIGNATURE----- --cWoXeonUoKmBZSoM--