Gnulib provides some handy intprops for overflow-checked integer arithmetic, which seem to be causing infloop when checked with cppcheck. I haven't managed to create a minimal reproducer, but you could replicate it with:
I can reproduce the hang in createSymbolDatabaseExprIds() with test-intprops.c and intprops.h.
It seems to be related to https://trac.cppcheck.net/ticket/10192
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Gnulib provides some handy intprops for overflow-checked integer arithmetic, which seem to be causing infloop when checked with cppcheck. I haven't managed to create a minimal reproducer, but you could replicate it with:
(PS: I sent an account creation request for the Trac some time ago, but haven't received a reply; so trying on this forum)
Last edit: Daiki Ueno 2023-01-10
I can reproduce the hang in
createSymbolDatabaseExprIds()
withtest-intprops.c
andintprops.h
.It seems to be related to https://trac.cppcheck.net/ticket/10192