Repository navigation
Conversation
vszakats
force-pushed
the
clangtidymore
branch
4 times, most recently
from
April 10, 2026 18:06
190fd50 to
ef25f2a
Compare
bugprone-macro-parentheses 2 bugprone-macro-parentheses 1a bugprone-macro-parentheses 1 longline
readability-redundant-parentheses
bugprone-macro-parentheses 4 priv bugprone-macro-parentheses 5 priv bugprone-macro-parentheses 6 priv bugprone-macro-parentheses 7 priv bugprone-macro-parentheses 8 priv bugprone-macro-parentheses 7 priv bugprone-macro-parentheses 7 priv bugprone-macro-parentheses 7 priv bugprone-macro-parentheses 7 priv
readability-named-parameter
[16/136] Building C object src/CMakeFiles/libssh2_static.dir/userauth_kbd_packet.c.o
src/userauth_kbd_packet.c:102:44: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-condition]
102 | (session->userauth_kybd_num_prompts = tmp_u32) != tmp_u32) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
src/userauth_kbd_packet.c:102:44: note: if it should be an assignment, move it out of the 'if' condition
src/userauth_kbd_packet.c:102:44: note: if it is meant to be an equality check, change '=' to '=='
Follow-up to 6dc42e9 libssh2#953
```
/home/runner/work/libssh2/libssh2/src/channel.c:1421:13: error: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result,-warnings-as-errors]
1421 | memcpy(s, auth_cookie, cookie_len);
| ^~~~~~ ~~~~~~~~~~~~
| strcpy (char *)
```
vszakats
added a commit
to vszakats/libssh2
that referenced
this pull request
Jun 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
return.ifexpressions.https://github.com/libssh2/libssh2/pull/1844/files?w=1