Path: csiph.com!news.mixmin.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Sat, 29 Apr 2017 07:34:16 -0500 From: Gareth Owen Newsgroups: comp.lang.c Subject: Re: Is this code considered to transgress the signed overflow purism? References: <11ea6682-cdee-4513-97c2-6c90b585716a@googlegroups.com> <87o9vi6rql.fsf@bsb.me.uk> <26aee5e9-ed2f-4c6e-af68-b85418c7e641@googlegroups.com> <10c71913-2871-4474-b05c-804bfdb7074d@googlegroups.com> Date: Sat, 29 Apr 2017 13:34:15 +0100 Message-ID: <87vapnfl4o.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:Y5SCjqCBpnf9I7gUEkHzmOwt3l4= MIME-Version: 1.0 Content-Type: text/plain Lines: 7 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-KMhK4avv2aqADB8WaqiJJdzIUIJsY9FrtswoT/B/GzFsh2gKP9/ezVMLaJ2n8zViLfv/RwwsqfMZifS!a5U2LQjSgOltN29/7pv0U+oau7nIgoa7qBFnHAtsBK3/nVpKkfzijpiH77CtuCyfwBGAsnw= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1681 Xref: csiph.com comp.lang.c:108725 Jerry Stuckle writes: > Too many programmers don't validate input. NEVER trust input from a > user. Verify EVERYTHING. This should be printed in Bold Capitals in the frontspiece of every introductory programming book (and most advanced ones too).