https://issues.apache.org/ooo/show_bug.cgi?id=125112

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from [email protected] ---
 struct CStringEqual
 {
     bool operator()( const char* p1, const char* p2) const {
-        while( *p1)
+        while( *p1 != '\0')
             if( *(p1++) != *(p2++))
                 return false;
-        return true;
+        return (*p2 == '\0');
     }
 };

But if second string p2 is short than p1, is there a acess violation?

-- 
You are receiving this mail because:
You are watching all issue changes.

Reply via email to