SQLite Multiple "access overflow" "arithmetic overflow" resource leak in sqlite3.c in C ++ Builder 6 CodeGuard

I have a Borland C ++ Builder 6.0 project. In this project, I am using the SQLite library. I am using the sqlite3.c file (SQLite 3.7.11 merge). Everything is working fine. But when I turn on CodeGuard in C ++ Builder, CodeGuard gives me numerous errors in sqlite3.c. Like "access overflow", "arithmetic overflow" resource leak.

I tried to insert 100,000 records into my database in the project. It took about 130 seconds, and the memory used by the process did not increase at all. Therefore, I think there is no memory leak.

My question is: should CodeGuard errors in sqlite be taken seriously? Or can I just ignore them? Maybe they are false positives? Or is the C ++ Builder 6 compiler not suitable for SQlite?

+3
source share
2 answers

SQLite is really reliable code. BCB 6 is a really old compiler.

I would suggest that SQLite code is fine, but the compiler either generates bad code or false positives in CodeGuard.

+1
source

I got rid of these warnings by compiling with an option SQLITE_WIN32_MALLOCthat configures SQLite to use the Win32 heap API instead malloc().

0
source

All Articles