RE: [PATCH] examples/l3fwd-acl:memset the acl matching result array

2022-01-25 Thread Ananyev, Konstantin
> If we don't memset acl result array before matching, > we can get arbitrary dirty data from memory. I don't think it is the case. acl_classify() on successful completion will always populate result array. The only exception - user provided ivalid input parameters, or acl ctx is not build, et

[PATCH] examples/l3fwd-acl:memset the acl matching result array

2022-01-24 Thread Zhiheng Chen
If we don't memset acl result array before matching, we can get arbitrary dirty data from memory. Signed-off-by: Zhiheng Chen --- examples/l3fwd-acl/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/l3fwd-acl/main.c b/examples/l3fwd-acl/main.c index 1fb1807235..7b9539b3ca 10