]> Kevux Git Server - fll/commit
Security: Potential buffer overflow on 0 length array.
authorKevin Day <kevin@kevux.org>
Thu, 9 May 2024 01:50:50 +0000 (20:50 -0500)
committerKevin Day <kevin@kevux.org>
Thu, 9 May 2024 01:50:50 +0000 (20:50 -0500)
commit1f6925c208d70c0bca0b6c3588d032addc79a5c4
treeaa0ac6bff388ba94f40977efb2bf56221feb79d6
parent2f05a46d4a0203b98169cd7a102d4a47d3daa0c1
Security: Potential buffer overflow on 0 length array.

The length_name_item variable can potentially be zero.
The assignment of "name_item[length_name_item] = 0;" will then result in an assignment on a 0 length array.

This issue has been exposed via GCC's -fanalyzer.
level_3/controller/c/rule/private-rule.c