]> Kevux Git Server - controller/commit
Security: Potential buffer overflow on 0 length array.
authorKevin Day <kevin@kevux.org>
Thu, 9 May 2024 01:51:11 +0000 (20:51 -0500)
committerKevin Day <kevin@kevux.org>
Thu, 9 May 2024 01:51:11 +0000 (20:51 -0500)
commitaaca6af87fffdee45529af3dc444d5733916e1a1
tree0867467ae55a1ccdd439eb9be656ae8214f1a6c2
parent59f29705e36f034a48f742e99c95d4b92e2439af
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.
sources/c/main/rule/setting.c