On Mon, May 01, 2000 at 09:55:29AM -0700, Ted Powell wrote: >>> When I ran openssl-0.9.5a's "make test", the tmp.bntest file that was >>> written contained (out of 1800+ tests) seven expressions which Solaris 7's >>> 'bc' evaluated to give non-zero results. >From one of your test examples, I derived the following 'bc' input: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> obase=16 ibase=16 a=AD88C418F31B3FC712D0425001D522B3AE9134FF3A98C13C1FCC1682211195406C1A6C66C6A\ CEEC1A0EC16950233F77F1C2F2363D56DD71A36C57E0B2511FC4BA8F22D261FE2E9356D99AF57\ 10F3817C0E05BF79C423C3F66FDF321BE8D3F18F625D91B670931C1EF25F28E489BDA1C5422D1\ C3F6F7A1AD21585746ECC4F10A14A778AF56F08898E965E9909E965E0CB6F85B514150C644759\ 3BE731877B16EA07B552088FF2EA728AC5E0FF3A23EB939304519AB8B60F2C33D6BA0945B66F0\ 4FC3CADF855448B24A9D7640BCF473E b=DCE91E7D120B983EA9A104B5A96D634DD644C37657B1C7860B45E6838999B3DCE5A555583C6\ 9209E41F413422954175A06E67FFEF6746DD652F0F48AEFECC3D8CAC13523BDAAD3F5AF4212BD\ 8B3CD64126E1A82E190228020C05B91C8B141F1110086FC2A4C6ED631EBA129D04BB9A19FC53D\ 3ED0E2017D60A68775B75481449 (a/b)*b + (a%b) - a <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< The formula on the last line should always evaluate to 0. But here's what happens: $ bc <t # GNU bc 0 $ /usr/bin/bc <t # SunOS 5.[78] bc -5305196545D41EFAA735F716E94D50454322036CA6467230A26B3F082E38B6B7EF66E\ B51184BC2F0C7876E48F693C5C0D5A817507E4B4338F2AC064F99C38C9179F41152618\ F819F32264DA307B877EF21BB2DCC4FB152E1BBE75DFE80A47488437A40A8B90C139B9\ D4B41278724D4147C7A0F37125F7C38A14AAE4C91695F00018ADE299FA5616FE7E2290\ 8ECBB5B6E593CBDC0A28FBD39E6AC65B421021736FC4BB1325A3811CF037189ED46BE1\ 57AD1CF87706C617D0C00000000000000000000000000000000000000000000 SunOS 5.6 appears not to have this bug. I guess the only thing we can do in OpenSSL is try to detect these broken bc versions and skip the 'bc'-based test if bc does not work. -- Bodo M�ller <[EMAIL PROTECTED]> PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html * TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt * Tel. +49-6151-16-6628, Fax +49-6151-16-6036 ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
