This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 3eb700768b6369e674e5d5a9758eb39f8fd34c3d (commit) from c05c1c608c6dbc367ebb9a819fa4cbbbca882db3 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 3eb700768b6369e674e5d5a9758eb39f8fd34c3d Author: Bill Fischofer bill.fischofer@linaro.org Date: Wed Aug 3 21:06:05 2016 +0000
validation: tm: use strncmp() to avoid potential string overrun
Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2426 by switching from strcmp() to strncmp()
Signed-off-by: Bill Fischofer bill.fischofer@linaro.org Reviewed-by: Mike Holmes mike.holmes@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/common_plat/validation/api/traffic_mngr/traffic_mngr.c b/test/common_plat/validation/api/traffic_mngr/traffic_mngr.c index b857800..c7bde40 100644 --- a/test/common_plat/validation/api/traffic_mngr/traffic_mngr.c +++ b/test/common_plat/validation/api/traffic_mngr/traffic_mngr.c @@ -1507,7 +1507,7 @@ static tm_node_desc_t *find_node_desc(uint8_t tm_system_idx, name_ptr++;
while (node_desc != NULL) { - if (strcmp(node_desc->node_name, node_name) == 0) + if (strncmp(node_desc->node_name, node_name, TM_NAME_LEN) == 0) return node_desc;
if (name_ptr == NULL)
-----------------------------------------------------------------------
Summary of changes: test/common_plat/validation/api/traffic_mngr/traffic_mngr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive