of: overlay: validate offset from property fixups
The smatch static checker marks the data in offset as untrusted, leading it to warn: drivers/of/resolver.c:125 update_usages_of_a_phandle_reference() error: buffer underflow 'prop->value' 's32min-s32max' Add check to verify that offset is within the property data. Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NFrank Rowand <frank.rowand@sony.com> Cc: <stable@vger.kernel.org> Signed-off-by: NRob Herring <robh@kernel.org>
Showing
想要评论请 注册 或 登录