[Doxygen-develop] Bounds error in util.cpp
Brought to you by:
dimitri
From: Alexander L. <aw...@do...> - 2007-06-09 19:54:14
|
Hello, I have been developing a bounds-checker for C++. I tested it using Doxygen and it finds a bounds error in util.cpp on line 1427 when running the define example. I went through the code by hand and it does, indeed, seem that the use of 'constScope[]' in '!isId(constScope[i-1])' can go out-of-bounds if the string passed in as parameter 's' is longer than 6 and, I assume, similarly with 'virtualScope[]' on line 1430. I realise that this is a very minor bounds error but I'm very curious whether this behaviour is intended. Alex Lamaison |