stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farid Zaripov <Far...@kyiv.vdiweb.com>
Subject RE: rw_match can address to memory after end of string buffer
Date Tue, 08 Aug 2006 15:01:35 GMT
  > -----Original Message-----
 > From: Martin Sebor [mailto:sebor@roguewave.com]
 > Sent: Monday, July 10, 2006 1:59 AM
 > To: stdcxx-dev@incubator.apache.org
 > Subject: Re: rw_match can address to memory after end of string buffer
 >
[...]
 >
 > >> Hmm, that does look like a subtle bug in rw_match(). Let
 > me look into
 > >> how best to fix it.
 >
 > The commit below should fix it. I'm not 100% happy with the
 > code and suspect there might still be some bugs lurking in
 > there but if they are there the current test doesn't reveal
 > them (even under Sun dbx with memory checking on) and none of
 > the string tests is showing any signs of problems either.
 > http://svn.apache.org/viewvc?rev=420363&view=rev

   The bug with addressing after the end of string still present.

   I updated the test 0.char.cpp to check this bug.

   The diff file is attached.

   ChangeLog:
   * 0.char.cpp: (test_rw_match): the test strings allocated at
   the protected memory to detect addressing after end of the string.


Farid.

Mime
View raw message