Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples/ipsec-secgw: fix partial overflow
[ upstream commit ae9267a67e9030c1b069b0df69924aaca17683bb ] Case of partial overflow detected with ASan. Added extra padding to cdev_key structure. This structure is used for the key in hash table. Padding is added to force the struct to use 8 bytes, to ensure memory is notread past this structs boundary (the hash key calculation reads 8 bytes if this struct is size 5 bytes). The padding should be zeroed. If fields are modified in this struct, the padding must be updated to ensure multiple of 8 bytes size overall. Fixes: d299106 ("examples/ipsec-secgw: add IPsec sample application") Signed-off-by: Brian Dooley <brian.dooley@intel.com>
- Loading branch information