Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko Newsgroups: comp.lang.java.programmer Subject: Re: really odd problem with jar signing Date: Mon, 14 Jan 2013 16:16:40 -0800 Organization: A noiseless patient Spider Lines: 31 Message-ID: <9f79f8lala931pj129d7nerui0p9udgbnj@4ax.com> References: <2o21f8p1fem5ghqimkgogvg8lrdvk9lcgr@4ax.com> <5j31f85qbc4juk3a62sft33pjn39gcd66n@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="95789bcd602b4527561dc0cb1c85cae5"; logging-data="19206"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+w0oWS0wXS25HhsnKwi+grc0j627JNjWg=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:TXEMTi4WT7qRe7KGZ95Ob5S37ak= Xref: csiph.com comp.lang.java.programmer:21403 On Mon, 14 Jan 2013 15:10:00 -0800, Roedy Green wrote: >On Mon, 14 Jan 2013 12:30:20 +0000 (UTC), Andreas Leitgeb > wrote, quoted or indirectly quoted >someone who said : > >>> Murphy could be after you. The digest comes out 0. :-) >> >>It took me a second read to grasp what you mean. > >That was intended as a joke. The odds of the SHA coming out 0 are >vanishingly small. Add to that the odds of code treating 0 as a >special case... If that were the actual trouble, it would be evidence >for the existence of supernatural maliciousness. Well, that explains C then: #include ... int SpecialCaseWhenZero; ... SpecialCaseWhenZero=0; ... if (SpecialCaseWhenZero) /* does not print so no friend for Roedy */ printf("Hey, Roedy!"); Sincerely, Gene Wirchenko