Skip to content

Commit 110d05c

Browse files
committed
disabled cert-err34-c in favor of bugprone-unchecked-string-to-number-conversion alias
1 parent 208f730 commit 110d05c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.clang-tidy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Checks: >
1818
-objc-*,
1919
-openmp-*,
2020
-zircon-*,
21-
cert-err34-c,
2221
cppcoreguidelines-pro-type-static-cast-downcast,
2322
cppcoreguidelines-rvalue-reference-param-not-moved,
2423
google-explicit-constructor,

lib/checkbufferoverrun.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ static int getMinFormatStringOutputLength(const std::vector<const Token*> &param
156156
outputStringSize++;
157157

158158
if (handleNextParameter) {
159-
// NOLINTNEXTLINE(cert-err34-c) - intentional use
159+
// NOLINTNEXTLINE(bugprone-unchecked-string-to-number-conversion) - intentional use
160160
int tempDigits = std::abs(std::atoi(digits_string.c_str()));
161161
if (i_d_x_f_found)
162162
tempDigits = std::max(tempDigits, 1);
163163

164164
if (digits_string.find('.') != std::string::npos) {
165165
const std::string endStr = digits_string.substr(digits_string.find('.') + 1);
166-
// NOLINTNEXTLINE(cert-err34-c) - intentional use
166+
// NOLINTNEXTLINE(bugprone-unchecked-string-to-number-conversion) - intentional use
167167
const int maxLen = std::max(std::abs(std::atoi(endStr.c_str())), 1);
168168

169169
if (formatString[i] == 's') {

0 commit comments

Comments
 (0)