Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ring: fix overflow in memory size calculation
[ upstream commit 0e4dc6a ] Parameters count and esize are both unsigned int, and their product can legaly exceed unsigned int and lead to runtime access violation. Fixes: cc4b218 ("ring: support configurable element size") Signed-off-by: Zhihong Wang <wangzhihong.wzh@bytedance.com> Reviewed-by: Liang Ma <liangma@liangbit.com> Reviewed-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
- Loading branch information