Skip to content

Refactor generation of procServ messages - #40

Open
mark0n wants to merge 5 commits into
ralphlange:masterfrom
mark0n:dont-truncate-strings
Open

Refactor generation of procServ messages#40
mark0n wants to merge 5 commits into
ralphlange:masterfrom
mark0n:dont-truncate-strings

Conversation

@mark0n

@mark0n mark0n commented Oct 27, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Owner

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

@mark0n

mark0n commented Nov 2, 2020

Copy link
Copy Markdown
Contributor Author

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

@mark0n

mark0n commented Nov 2, 2020

Copy link
Copy Markdown
Contributor Author

@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