commit | e264b5573952c72805a14e69e438168c00163e9a | [log] [tgz] |
---|---|---|
author | Sieu Mun Tang <sieu.mun.tang@intel.com> | Mon Aug 26 07:59:10 2024 +0800 |
committer | Sieu Mun Tang <sieu.mun.tang@intel.com> | Mon Aug 26 07:59:10 2024 +0800 |
tree | 5c0b1749668287f86768218f62b28ed7238c1cda | |
parent | 8fb91783ffa96343dd8ebad9773d7c2055ea4496 [diff] |
fix(intel): update memcpy to memcpy_s memcpy does not check the dst_size which may create vulnerable issue as it can overflow the buffer. Using memcpy_s which check the dst_size will help to reduce the risk. Also, this memcpy is always 4 bytes each time. Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com> Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com> Change-Id: I413e6ae2ee9330501703c4cd63b7943c6f55b4c7