Skip to content
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 format nonliteral #449

Merged
merged 9 commits into from
May 24, 2020
Merged

fix format nonliteral #449

merged 9 commits into from
May 24, 2020

Conversation

srz-zumix
Copy link
Owner

No description provided.

@srz-zumix srz-zumix added this to the version 1.17.1 milestone May 23, 2020
@codecov
Copy link

codecov bot commented May 24, 2020

Codecov Report

Merging #449 into develop will increase coverage by 0.01%.
The diff coverage is 94.28%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #449      +/-   ##
===========================================
+ Coverage    96.72%   96.74%   +0.01%     
===========================================
  Files          213      213              
  Lines        10683    10744      +61     
===========================================
+ Hits         10333    10394      +61     
  Misses         350      350              
Impacted Files Coverage Δ
test/assertion_only_tests.cpp 90.00% <ø> (ø)
test/output_xml_repeat_tests.cpp 90.00% <75.00%> (-10.00%) ⬇️
include/impl/iutest_default_xml_generator.ipp 98.98% <100.00%> (+0.01%) ⬆️
include/internal/iutest_string.hpp 95.72% <100.00%> (+0.95%) ⬆️
test/unit_string_tests.cpp 100.00% <100.00%> (ø)
include/iutest_typed_tests.hpp 93.27% <0.00%> (+3.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f3a5094...852121a. Read the comment docs.

}
IUTEST(UnitStringTest, InvalidVsnprintf)
{
IUTEST_EXPECT_EQ(-1, test_iu_vsnprintf(NULL, 1, "test"));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
If you can, use sizeof(NULL) instead of 1 as the 2nd arg to snprintf. [runtime/printf] [3]

}
IUTEST(UnitStringTest, InvalidVsnprintf)
{
IUTEST_EXPECT_EQ(-1, test_iu_vsnprintf(NULL, 1, "test"));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] If you can, use sizeof(NULL) instead of 1 as the 2nd arg to snprintf. (view)

Rule Confidence
runtime/printf 3

You can close this issue if no need to fix it. Learn more.

@srz-zumix srz-zumix merged commit 500e8e7 into develop May 24, 2020
@srz-zumix srz-zumix deleted the feature/fix_format_nonliteral branch May 24, 2020 19:09
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.

None yet

1 participant