diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-04-14 16:56:53 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-04-14 18:39:38 +0200 |
| commit | 90c07e562c9154d1e5e9def789b319c6640b5a93 (patch) | |
| tree | a8815ad1b7ad06408cef23f37576322939d07792 /scripts/lintcommit.lua | |
| parent | e6aee903dbe9a828079877b9aac9b3682a6aaf47 (diff) | |
| download | rneovim-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