Re: basic_string causes crash in _vsnprintf???
- From: WXS <WXS@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Jun 2005 05:32:03 -0700
Thanks the information about the earlier version I had not validated yet.
We'll look for those with pc-lint.
Thanks for the help.
"Tom Widmer [VC++ MVP]" wrote:
> WXS wrote:
> > We are on a fairly old stlport where I believe it is reliable. The newer
> > versions don't work that way to my understanding.. so for the moment we could
> > live with the older version although we know there are bugs an issues in the
> > older one we are at least aware of all of the significant ones.
>
> I think that you may be mistaken. Since STLport first had std::string
> (back in version 3.12?), the size has *always* been greater than 4,
> which means that you can't treat it as a char* in varargs functions. It
> seems likely you're sitting on a time bomb, and just haven't yet noticed
> a large number number of bugs due to this (it only triggers when you
> have further varargs after a std::string - those varargs will all be
> corrupt).
>
> I suggest you try the hello world program I posted with the version you
> are using, but I think you are going to discover that your code is
> broken anyway.
>
> Tom
>
.
- References:
- basic_string causes crash in _vsnprintf???
- From: WXS
- RE: basic_string causes crash in _vsnprintf???
- From: WXS
- Re: basic_string causes crash in _vsnprintf???
- From: Stephen Howe
- Re: basic_string causes crash in _vsnprintf???
- From: WXS
- Re: basic_string causes crash in _vsnprintf???
- From: Tom Widmer [VC++ MVP]
- Re: basic_string causes crash in _vsnprintf???
- From: WXS
- Re: basic_string causes crash in _vsnprintf???
- From: Tom Widmer [VC++ MVP]
- basic_string causes crash in _vsnprintf???
- Prev by Date: Re: basic_string causes crash in _vsnprintf???
- Next by Date: Re: basic_string causes crash in _vsnprintf???
- Previous by thread: Re: basic_string causes crash in _vsnprintf???
- Next by thread: RE: basic_string causes crash in _vsnprintf???
- Index(es):
Relevant Pages
|