Tags: freebsd/atf
Tags
atf_check: fix std::length_error thrown from temp_file The previous logic used 2 separate calls to `atf::fs::path::str()` when constructing a `std::vector<char>` to pass to `mkstemp(..)`. This in turn caused grief with how data copying is done in atf-c(3), etc, as the prior code computed the length of the path of an internal buffer in `atf_dynstr` structs. Moreover, the code was manually appending a nul char, which was unnecessary when making the valid assumption that `std::string` is a nul-terminated string. The new code convert the path to an `std::string` once, includes the existing nul char in the buffer, then passes it to mkstemp(3) instead. The code works properly now. Closes: #76 Signed-off-by: Enji Cooper <ngie@FreeBSD.org>
Release atf-0.21 Update release notes accordingly and bump the major version of the shared libraries. In theory, bumping the major version is not strictly necessary because we only removed the internal config module... but there might be binaries out there relying on it (see the old version of the ATF libraries in NetBSD). Better be safe than sorry given that a symbol removal requires a major version bump.
PreviousNext