wl12xx: Check buffer bound when processing nvs data
An nvs with malformed contents could cause the processing of the calibration data to read beyond the end of the buffer. Prevent this from happening by adding bound checking. Signed-off-by: NPontus Fuchs <pontus.fuchs@gmail.com> Cc: stable@kernel.org Reviewed-by: NLuciano Coelho <coelho@ti.com> Signed-off-by: NLuciano Coelho <coelho@ti.com>
Showing
想要评论请 注册 或 登录