Re: [Cppunit-devel] TODO: bugs
Brought to you by:
blep
From: Baptiste L. <gai...@fr...> - 2003-01-31 22:15:45
|
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" <gai...@fr...> To: "CppUnit Developers" <cpp...@li...> 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 > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel > |