Tags: patriotyk/libpqxx
Tags
Fix handling of eof() in streambuffer underflow. @tomlankhorst has identified a serious bug which affected the `ilostream` class. If you opened a large object _as an ilostream,_ and it contained a byte with value `0xff` _at a buffer boundary,_ on a system where `char` is a signed type (such as x86-compatible systems), then reading of the large object would **mistake the `0xff` byte for end-of-file** and stop reading prematurely.
Refactor stream_from to remove some awkward template code (jtv#273) * Refactor stream_from to remove some awkward template code This changes it to a simpler compile time list comprehension using a c++17 fold over the comma operator. * Add back in the check that we don't try to pull too many fields
In CMake, prefer CMake's config headers. Fixes jtv#178. Sometimes people experienced strange build problems when building with CMake, where libpqxx seemed to be compiled for a different C++ version than the one for which it was configured. This seems to happen in out-of-tree builds when the source tree has the configuration headers (`include/pqxx/config-*-*.h`), generated by the native autoconf-based build. The CMake build would generate similar config headers in the build tree, but when actually compiling, the build preferred the autoconf-generated config headers over the CMake-generated ones. This fixes that by reordering the include directories as they are added.
PreviousNext