docs: deprecated.rst: Clarify open-coded arithmetic with literals
Although using literals for size calculation in allocator arguments may be harmless due to compiler warnings in case of overflows, it is better to refactor the code to avoid the use of open-coded arithmetic. So, clarify the preferred way in these cases. Suggested-by: NKees Cook <keescook@chromium.org> Signed-off-by: NLen Baker <len.baker@gmx.com> Reviewed-by: NGustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20210925143455.21221-1-len.baker@gmx.comSigned-off-by: NJonathan Corbet <corbet@lwn.net>
Showing
想要评论请 注册 或 登录