Not respecting zero byte (\0
) while logging mismatch of std::string.
#140
Labels
third-party
Due to a third-party issue or user error
In current solution, following code
leads to error:
(IMHO it should print what printing the std::string would -
abcdef
- or in ideal world, something likeabc\x00def
)The message for the exception is generated correctly, problem lies in printing it in failure_formatter: it uses
what()
method which returnsconst char *
, so it simply ends on first \0 occurence.The text was updated successfully, but these errors were encountered: