Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions iis/mymodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,9 @@

ZeroMemory(szLength, sizeof(szLength));

hr = StringCchPrintfA(
hr = StringCchPrintfA(
szLength,
sizeof(szLength) / sizeof(CHAR) - 1, "%d",
sizeof(szLength) / sizeof(CHAR), "%llu",

Check failure on line 644 in iis/mymodule.cpp

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use "std::size" to get the size of this array.

See more on https://sonarcloud.io/project/issues?id=owasp-modsecurity_ModSecurity&issues=AaBCXTyM2e7bGHf3GgaY&open=AaBCXTyM2e7bGHf3GgaY&pullRequest=3620
ulTotalLength);

if(FAILED(hr))
Expand Down Expand Up @@ -1139,7 +1139,7 @@

HRESULT hr = StringCchPrintfA(
szLength,
sizeof(szLength) / sizeof(CHAR) - 1, "%d",
sizeof(szLength) / sizeof(CHAR), "%u",

Check failure on line 1142 in iis/mymodule.cpp

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use "std::size" to get the size of this array.

See more on https://sonarcloud.io/project/issues?id=owasp-modsecurity_ModSecurity&issues=AaBCXTyM2e7bGHf3GgaZ&open=AaBCXTyM2e7bGHf3GgaZ&pullRequest=3620
length);

if(FAILED(hr))
Expand Down Expand Up @@ -1227,7 +1227,7 @@

HRESULT hr = StringCchPrintfA(
szLength,
sizeof(szLength) / sizeof(CHAR) - 1, "%d",
sizeof(szLength) / sizeof(CHAR), "%u",

Check failure on line 1230 in iis/mymodule.cpp

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use "std::size" to get the size of this array.

See more on https://sonarcloud.io/project/issues?id=owasp-modsecurity_ModSecurity&issues=AaBCXTyM2e7bGHf3Ggaa&open=AaBCXTyM2e7bGHf3Ggaa&pullRequest=3620
length);

if(FAILED(hr))
Expand Down
Loading