Skip to content

Silence CodeQL warning for BLAKE2b byte offset - #3

Merged
zhongkechen merged 1 commit into
mainfrom
fix/codeql-byte-offset
Aug 26, 2026
Merged

Silence CodeQL warning for BLAKE2b byte offset#3
zhongkechen merged 1 commit into
mainfrom
fix/codeql-byte-offset

Conversation

@zhongkechen

Copy link
Copy Markdown
Owner

Summary

  • express the BLAKE2b byte offset through array subscripting
  • preserve the existing byte-wise addressing and hash behavior
  • avoid CodeQL's suspicious pointer-add-with-sizeof pattern

This addresses code-scanning alert #1, which is a false positive because the underlying pointer is byte-sized.

Validation

  • Ubuntu 24.04 / GCC 13 release build with benchmarks enabled
  • ctest --test-dir build --output-on-failure (3/3 passed)
  • git diff --check

@zhongkechen
zhongkechen merged commit 35c3b7d into main Aug 26, 2026
7 checks passed
@zhongkechen
zhongkechen deleted the fix/codeql-byte-offset branch August 26, 2026 23:22
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.

1 participant