Re: [PATCH] docs/misra/rules.rst: allow string literals with memcmp

2025-07-08 Thread Jan Beulich
On 07.07.2025 23:45, Stefano Stabellini wrote: > On Thu, 26 Jun 2025, Nicola Vetrini wrote: >> On 2025-06-24 08:11, Jan Beulich wrote: >>> On 24.06.2025 01:45, Stefano Stabellini wrote: Rule 21.16 is about the types of arguments allowed for memcpy. >>> >>> Seeing the subject - is it memcmp(),

Re: [PATCH] docs/misra/rules.rst: allow string literals with memcmp

2025-07-07 Thread Stefano Stabellini
On Thu, 26 Jun 2025, Nicola Vetrini wrote: > On 2025-06-24 08:11, Jan Beulich wrote: > > On 24.06.2025 01:45, Stefano Stabellini wrote: > > > Rule 21.16 is about the types of arguments allowed for memcpy. > > > > Seeing the subject - is it memcmp(), memcpy(), or both? (Writing from > > home, where

Re: [PATCH] docs/misra/rules.rst: allow string literals with memcmp

2025-06-26 Thread Nicola Vetrini
On 2025-06-24 08:11, Jan Beulich wrote: On 24.06.2025 01:45, Stefano Stabellini wrote: Rule 21.16 is about the types of arguments allowed for memcpy. Seeing the subject - is it memcmp(), memcpy(), or both? (Writing from home, where I don't have the Misra spec to hand, and hence can't check wha

Re: [PATCH] docs/misra/rules.rst: allow string literals with memcmp

2025-06-24 Thread Jan Beulich
On 24.06.2025 01:45, Stefano Stabellini wrote: > Rule 21.16 is about the types of arguments allowed for memcpy. Seeing the subject - is it memcmp(), memcpy(), or both? (Writing from home, where I don't have the Misra spec to hand, and hence can't check what coverage the rule has.) Jan

[PATCH] docs/misra/rules.rst: allow string literals with memcmp

2025-06-23 Thread Stefano Stabellini
Rule 21.16 is about the types of arguments allowed for memcpy. Add string literals to the allow-list under specific conditions. Suggested-by: Jan Beulich Signed-off-by: Stefano Stabellini diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index e1c26030e8..3e014a6298 100644 --- a/docs/mis