Skip to content

misc: clarify C syntax in ssh2_store_bignum_bytes() - #2068

Closed
vszakats wants to merge 3 commits into
libssh2:masterfrom
vszakats:miscsynt
Closed

vszakats wants to merge 3 commits into
libssh2:masterfrom
vszakats:miscsynt

Conversation

@vszakats

@vszakats vszakats commented Jun 15, 2026 •

Copy link
Copy Markdown
Member

Functionally the same. To avoid LLMs generating false positives.

Reported-by GitHub Code Quality

Follow-up to ed439a2 #698

vszakats added 3 commits June 16, 2026 01:09
Mainly to avoid LLMs generating false positives.

Reported-by GitHub Code Quality

Follow-up to ed439a2 libssh2#698
This reverts commit 6dc93dc.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request makes a no-functional-change clarification to pointer/array dereference syntax in ssh2_store_bignum_bytes() (in src/misc.c) to avoid confusion and reduce the chance of automated reviewers/LLMs misreading the intent.

Changes:

  • Replace *buf[0] = 0; with the clearer equivalent (*buf)[0] = 0; when writing the leading zero byte for bignum encoding.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vszakats vszakats closed this in 3c2dc8f Jun 15, 2026
@vszakats
vszakats deleted the miscsynt branch June 15, 2026 23:29
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.

2 participants