Skip to content

Conversation

@mark0n
Copy link
Contributor

@mark0n mark0n commented Oct 27, 2020

Replace fixed size char string buffers by std::string to rule out buffer overflows/truncating strings. By doing so we get rid of some compiler warnings.

Note: These changes leverage C++14 features but at the cost of some readability this could also be done with C++11 or even C++98. Which standard version are we shooting for?

@ralphlange
Copy link
Owner

C++11 is probably fine.
Should we add a check for autoconf (like this one)?

@mark0n
Copy link
Contributor Author

mark0n commented Nov 2, 2020

Not a bad idea. Please check if I added it in the right spot - autoconf predates my days as a software developer ;-)

@mark0n
Copy link
Contributor Author

mark0n commented Nov 2, 2020

@ralphlange any idea how to deal with the failing AppVeyor build? On Debian ax_cxx_compile_stdcxx_11.m4 comes as part of the autoconf-archive package.

Replace fixed size char string buffers by std::string to rule out
buffer overflows/truncating strings. By doing so we get rid of
some compiler warnings.
@mark0n mark0n force-pushed the dont-truncate-strings branch from 1aa9a5b to 4b2aa0b Compare November 2, 2020 17:19
@mark0n mark0n force-pushed the dont-truncate-strings branch 2 times, most recently from 79097e5 to 78bba23 Compare November 2, 2020 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants