Occasionally, I do a (clang) scan-build of cb's trunk with its default set of static analyzer checks. The resulting report (as of now svn 12566), lists numerous potential issues. Unfortunately, these have been accumulated over a long time. I looked into 2 of those and provide small patches for them.
OS: arch linux; wxwidgets (3.1.6): trunk; g++ 11.1.0; clang 13.0.0
Btw: Is there any reason to keep NULL instead of nullptr in cb's c++ (not c-) code? Since this is very low hanging fruit, are there any objections to successively replace them in chunks within trunk? I'd skip imported 3rd-party code like wxscintilla since it would make diffs to their source noisier.