libpqxx:msvc-audit

Last commit made on 2023-03-30
Get this branch:
git clone -b msvc-audit https://git.launchpad.net/libpqxx

Branch merges

Branch information

Name:
msvc-audit
Repository:
lp:libpqxx

Recent commits

1d9ac09... by Jeroen T. Vermeulen

Try to enable MSVC debug options.

83db391... by Jeroen T. Vermeulen

Add MSVC runtime checks in audit mode.

I tried adding these on the cmake command line, but that didn't work for
some reason. But really, audit mode is a good place for them.

bac041b... by Jeroen Vermeulen <email address hidden>

Add `<pqxx/range>` and `<pqxx/time>` headers to `<pqxx/pqxx>`. (#668)

Fixes #667.

99f9658... by Jeroen Vermeulen <email address hidden>

Document build workarounds contributed by @skasperski. (#666)

Note the changes for #664 & #665 in the appropriate places.

9e08f13... by Sebastian Kasperski <email address hidden>

Fallback to pkg-config when libpq s not found with CMake. (#664)

8b87309... by Sebastian Kasperski <email address hidden>

Fix build on g++ version < 10. (#665)

b87d7aa... by Jeroen Vermeulen <email address hidden>

Enable gcc static analysis in maintainer mode. (#663)

This should allow the compiler to find more bugs.

Unfortunately when I just enabled `-fanalyzer`, it found two potential
null dereferences that I don't think I could fix. I saw no mention of
libpqxx code, only standard-library code, which makes it very hard to
debug on my end.

Luckily the type was a giveaway: `std::vector<pqxx::zview>`. The only
item of that type is `pqxx::stream_from::m_fields`. I just deprecated
that entire class.

For now, I enabled all documented analyzers in gcc... except that one.

1afb8cd... by Jeroen Vermeulen <email address hidden>

Add missing gate headers to `Makefile.am`. (#658)

Fix `configure`-based install: missing header files.

1c19aae... by Jeroen Vermeulen <email address hidden>

Simplify parsing of unquoted strings in arrays. (#656)

ccb4576... by Jeroen Vermeulen <email address hidden>

Check for errors after poll/select/WSAPoll. (#655)

Check for errors after poll/select/WSAPoll.

This was never urgent, because if waiting for a socket fails, the
operation which the caller is waiting to perform will normally also
fail. (And if not... why report an error really?)

But, it's probably nicer to check for errors and report them.