A new version of Firebird DBMS was released not so long ago. This release was one of the most significant in the project's history, as it marked substantial revision of the architecture, addition of multithreading support, and performance improvements. Such a significant update was a good occasion for us to scan Firebird one more time with PVS-Studio static code analyzer.

Firebird is a cross-platform open-source database management system written in C++ that runs on Microsoft Windows, Linux, Mac OS X, and many Unix-like operating systems. It can be used and distributed for free. To learn more about Firebird, welcome to the official site.

During the inspection were found typos, unsafe use of memcmp, unsafe comparison of an unsigned variable, null pointer dereferencing, unsafe use of realloc, unused enum values in switch and other errors.

More details about all the bugs read here: Analyzing Firebird 3.0