Article View: borland.public.cppbuilder.nativeapi
Article #1829Re: Thread safety
From: Colin B Maharaj
Date: Tue, 12 Jun 2007 13:25
Date: Tue, 12 Jun 2007 13:25
18 lines
1826 bytes
1826 bytes
Well I hear you, and I am aware of the kinds of mistakes you can make while using sprintf / printf, they could be deadly. I guess the worse mistake you can make with these functions is calling it badly and it does not outright access violate. This means that the pin is out in the grenade but no one has thrown it yet! But it is possible. What I will do by weekend is to create a test app to illustrate what I am saying. Alan Bellingham wrote: > Colin B Maharaj <noreply@myhost.com> wrote: > >> I then decided to remove sprintf and all went very well. > > It's perfectly possible to badly misuse sprintf() - that doesn't mean > that sprintf() itself is buggy, just the way it's being used. > > Alan Bellingham
Technical Details
Message-ID:
<466e9ee2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<466e7571$1@newsgroups.borland.com> <466e89d8$1@newsgroups.borland.com> <466e9171@newsgroups.borland.com> <pk5t631vcb1bq1inudf3d71t44m209lj59@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7fa2ebca6213823d X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 12 Jun 2007 09:25:53 -0400 From: Colin B Maharaj <noreply@myhost.com> User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Thread safety References: <466e7571$1@newsgroups.borland.com> <466e89d8$1@newsgroups.borland.com> <466e9171@newsgroups.borland.com> <pk5t631vcb1bq1inudf3d71t44m209lj59@4ax.com> In-Reply-To: <pk5t631vcb1bq1inudf3d71t44m209lj59@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000748-3, 06/11/2007), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 190.58.14.113 Message-ID: <466e9ee2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1181654754 190.58.14.113 (12 Jun 2007 06:25:54 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail