aboutsummaryrefslogtreecommitdiff
path: root/scripts/lintcommit.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-04-14 16:56:53 +0200
committerJustin M. Keyes <justinkz@gmail.com>2026-04-14 18:39:38 +0200
commit90c07e562c9154d1e5e9def789b319c6640b5a93 (patch)
treea8815ad1b7ad06408cef23f37576322939d07792 /scripts/lintcommit.lua
parente6aee903dbe9a828079877b9aac9b3682a6aaf47 (diff)
downloadrneovim-90c07e562c9154d1e5e9def789b319c6640b5a93.tar.gz
rneovim-90c07e562c9154d1e5e9def789b319c6640b5a93.tar.bz2
rneovim-90c07e562c9154d1e5e9def789b319c6640b5a93.zip
build(clang-analyzer): UB pointer subtraction
Problem: clang-analyzer-security.PointerSub reports "Subtraction of two pointers that do not point into the same array is undefined behavior" in the HIKEY2SFT macro. Computing the offset of a flexible array member by subtracting pointers from a dummy static object, is technically UB. Solution: Use standard `offsetof()` instead. Co-Authored-By: Claude
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions