[Boost-bugs] [Boost C++ Libraries] #2022: Found crash of boost for characters ' * ' , ' a* ' , & " abc** "

Subject: [Boost-bugs] [Boost C++ Libraries] #2022: Found crash of boost for characters ' * ' , ' a* ' , & " abc** "
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-19 08:07:37


#2022: Found crash of boost for characters ' * ' , ' a* ' , & " abc** "
----------------------------------------+-----------------------------------
 Reporter: md.salim.hussain_at_[hidden] | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: Boost 1.35.1 | Component: regex
  Version: Boost 1.34.0 | Severity: Showstopper
 Keywords: |
----------------------------------------+-----------------------------------
 Hi,
 I have found crash of Boost Regex Library whenever I give search Pattern
 '*' or 'a*' or 'abc**' i.e. multiple occurence of *
 My code is like this:

 #include "GrepWrapper.h"
 #include <stdio.h>
 using namespace std;
 char pattern[] =
         "aa moduladfe=message&_action=view5080|"
         "*|"
         "*GET|"
         "ya**|"
         "tarewq*|"
         ;

 char buf[] =
         "GET"
         "yaaaa"
         "GET";

 int main(int argc, char **argv)
 {
         int nRetValue = 0;
         CGrepWrapper objGrepWrapper;
         objGrepWrapper.SetSearchPattern(pattern);

            ACE_Vector<std::string> vOutputVector;
            nRetValue = objGrepWrapper.ApplyFilter(buf, 10, vOutputVector,
 true);
            int nVectorLen = vOutputVector.size();
            if (nVectorLen > 0)
            {
                    for (int i = 0 ; i < nVectorLen; i++)
                    {
                                 printf("\t%s", vOutputVector[i].c_str());
                                 vOutputVector.pop_back();
                    }
            }
            else
            {
                    //printf("\nNot Found");
            }
         return 0;
 }

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2022>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC