OSDN Git Service

Fixed stack-overflow when parsing insanely nested compound statements.
authorErik Verbruggen <erik.verbruggen@nokia.com>
Mon, 17 Oct 2011 08:24:39 +0000 (10:24 +0200)
committerErik Verbruggen <erik.verbruggen@nokia.com>
Mon, 17 Oct 2011 09:17:46 +0000 (11:17 +0200)
commit29dff7221d7c24aa6db78fc63a3588d01b8143de
treeff34e273f04cd1c1991909ee80cf072802e62439
parent7e3d41da58876a16cc681201268af4ef1c7d5041
Fixed stack-overflow when parsing insanely nested compound statements.

Thanks to Clang's parser_overflow.cpp which has >16000 nested compound
statements to check exactly the same.

Change-Id: I2b604f8ceb01115d7fe950994e0677a081e99481
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
src/libs/3rdparty/cplusplus/Parser.cpp
src/libs/3rdparty/cplusplus/Parser.h