summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorMichael Bommarito <michael.bommarito@gmail.com>2026-05-25 12:28:25 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2026-05-26 16:18:18 +0300
commitcff8eb65d1eafe7793e54b4d0cf6bf831644630b (patch)
tree251152a562265c92e0eb830f846f217951ed55f0 /tools/lib/python/kdoc/python_version.py
parent928abe19fbf0127003abcb1ea69cabc1c897d0ab (diff)
downloadlinux-cff8eb65d1eafe7793e54b4d0cf6bf831644630b.tar.xz
thunderbolt: Reject zero-length property entries in validator
tb_property_entry_valid() accepts entries with length == 0 for DIRECTORY, DATA, and TEXT types. A zero-length TEXT entry passes validation but causes an underflow in the null-termination logic: property->value.text[property->length * 4 - 1] = '\0'; When property->length is 0 this writes to offset -1 relative to the allocation. Reject zero-length entries early in the validator since they have no valid representation in the XDomain property protocol. Fixes: cdae7c07e3e3 ("thunderbolt: Add support for XDomain properties") Cc: stable@vger.kernel.org Assisted-by: Claude:claude-opus-4-7 Signed-off-by: Michael Bommarito <michael.bommarito@gmail.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions