-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix printable bytes that may be escaped incorrectly #5145
Conversation
AWS CodeBuild CI Report
|
flow/Trace.h
Outdated
@@ -333,6 +333,7 @@ struct TraceableStringImpl : std::true_type { | |||
result.push_back(base16Char(byte)); | |||
} | |||
} | |||
ASSERT(result.size() == result.capacity()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this assert is worth having in the production code. Might consider making it a TEST_ASSERT
(I think that's what that does anyway)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe ASSERT_WE_THINK
is the relevant test macro to test something only in simulation.
AWS CodeBuild CI Report
|
AWS CodeBuild CI Report
|
0x5C
'\'
should not be counted as normal printablesCode-Reviewer Section
The general guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branch
ormaster
if this is the youngest branch)