Messages in this thread | | | From | Jonathan Corbet <> | Subject | Re: [PATCH v3] docs: deprecated.rst: Clarify open-coded arithmetic with literals | Date | Tue, 26 Oct 2021 09:44:14 -0600 |
| |
Len Baker <len.baker@gmx.com> writes:
> 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: Kees Cook <keescook@chromium.org> > Signed-off-by: Len Baker <len.baker@gmx.com> > --- > Changelog v1 -> v2 > - Clarify the sentence by changing "keep <foo> out" with "avoid <foo>" > (Joe Perches). > > Changelog v2 -> v3 > - Reword the sentence to comunicate better (Jonathan Corbet). > > The previous version can be found here [1]. > > [1] https://lore.kernel.org/linux-hardening/20210829144716.2931-1-len.baker@gmx.com/
Applied, thanks.
jon
| |