From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HEADER_SPAM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc772,b30bd69fa8f63cb2 X-Google-Attributes: gidfc772,public X-Google-Thread: 103376,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-04 06:24:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!ihug.co.nz!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!usc.edu!rpi!not-for-mail From: Hyman Rosen Newsgroups: comp.lang.ada,comp.lang.c++.moderated Subject: Re: C bug of the day Date: 4 Jun 2003 09:26:28 -0400 Organization: KBC Financial Products Sender: cppmods@netlab.cs.rpi.edu Message-ID: <1054678322.557157@master.nyc.kbcfp.com> References: <3EDCCE72.4020707@cogeco.ca> NNTP-Posting-Host: netlab.cs.rpi.edu X-Original-Date: Tue, 03 Jun 2003 18:12:02 -0400 X-Submission-Address: c++-submit@netlab.cs.rpi.edu X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated iQBVAwUAPt3zgUHMCo9UcraBAQEKBgH/eB8Af1PDa55VICXrrO/E7L9EYYcyxaqS LPJ5x1CodKA46xrvw3scCxIIcE/2brLuyCuZlFUnda17CjuqE6qVPg== =WNvj Xref: archiver1.google.com comp.lang.ada:38592 comp.lang.c++.moderated:67695 Date: 2003-06-04T09:26:28-04:00 List-Id: Warren W. Gay VE3WWG wrote: > The problem ended up in an INFORMIX-7.31 library > > That little buffer overflow problem cost me 3 months of my life, > and was a very expensive mistake for the company to correct. Oddly enough, the most mysterious bug I had to deal with recently turned out to be a problem in Sybase ODBC drivers. I had been programming database code in Visual Basic in Excel. The company was changing people over from WindowsNT to Windows2000, and certain of my spreadsheets stopped working. Stored procedure calls would fail mysteriously. You can only imagine the number of blind alleys I wandered down trying to figure out what was going on. The ultimate culprit? The ODBC driver when invoked from Excel sent Sybase its host ID in hex. One of the internal stored procedures of the same trading system would get the host ID, which Sybase returns as a string, and try to convert it to decimal. When there happened to be no hex digits in the ID, everything would be fine. When there were, the conversion would cause an error, aborting the procedure. On and off, that bug cost me a couple of months of hair pulling. [ Send an empty e-mail to c++-help@netlab.cs.rpi.edu for info ] [ about comp.lang.c++.moderated. First time posters: do this! ]