Commit: aa54087f13d54320f57473b5a8e6d979314266bc
Parent: 24cf049395020c360534328a8c6b931a03a5f7dd
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-06-03 22:02:47
Tree: ee78581c671d465ba764f93deb497edacd885ebd

mgmt-tester: Fix buffer overrun Error: OVERRUN (CWE-119): [#def56] [important] tools/mgmt-tester.c:12674:2: overrun-local: Overrunning array "buf" of 513 bytes at byte offset 513 using index "read + 1" (which evaluates to 513). 12672| } 12673| /* Make sure buf is nul-terminated */ 12674|-> buf[read + 1] = '\0'; 12675| 12676| /* Verify if all devcoredump header fields are present */ Fixes: 49d06560692f ("mgmt-tester: Fix non-nul-terminated string")

Diffstat

M tools/mgmt-tester.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

View Full Diff | Patch