Re: TODO: bugs
"Baptiste Lepilleur" <[email protected]> Fri, 31 Jan 2003 23:17:49 +0100
| Newsgroups | gmane.comp.lib.cppunit.devel |
|---|---|
| Message-ID | <009601c2c976$9828cd90$0b46c2d4@lain> |
Sorry, I messed up with my mail reader settings and this mail end up in the wrong mailing list (I keep confusing the the cppunit and cpptool project :-( ). Baptiste. ----- Original Message ----- From: "Baptiste Lepilleur" <[email protected]> To: "CppUnit Developers" <[email protected]> Sent: Friday, January 31, 2003 10:52 PM Subject: [Cppunit-devel] TODO: bugs > I've found a couple of bugs while using the add-in. They have been added > to the todo: > > a.. [High] Bug: The code analysis failed to recognize a local variable > occurrence. > a.. Details: > // Fails to recognize the last occurrence of bigBuffer as a local > variable > { > std::vector<int> bigBuffer; > { > KTEST_ASSERT_EQUAL( index, bigBuffer[index] ); > } > } > > This file can be found in bug/LocaleVariableNotRecognized?.cpp. The is a > unit test for it: IdentifierResolverTest?::testBug1() > a.. Solutions: seems to be related to the existence of the inner > CompoundStatement? (recognized correctly if removed). > b.. Status: to do > a.. [High] Bug: VC6 add-in crash when analysing the source > bug/ParserCrash?.cpp. > a.. Details: > // Crash when trying to rename the last occurrence of bigBuffer. (from > the add-in, seems to be in the IdentifierResolver?). > { > const int bufferSize = 256000; > std::vector<int> bigBuffer; > bigBuffer.reserve( bufferSize ); > for ( int index =0; index < bufferSize; ++index ) > bigBuffer[ index ] = 0; > > > const char *byteBuffer = (char *)&bigBuffer[0]; > int recievedLength = 0; > int totalLength = sizeof(int) * bufferSize; > > > KTEST_ASSERT_EQUAL( index, bigBuffer[index] ); > } > > a.. Solutions: ? > b.. Status: to do > Notes: even though the second bug was constated while using the add-in, the > crash occurred during code analysis in IdentifierResolver. > > Baptiste. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Cppunit-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cppunit-devel > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com