From 682ffdbda496c9565ecec7074835153e0bf66d6d Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Wed, 24 Jul 2024 15:44:14 -0700 Subject: [PATCH] docs/misra: add R18.6 to rules.rst In practice, we are already following R18.6 and we have zero violations reported by ECLAIR (there are some cautions being reported.) Signed-off-by: Stefano Stabellini Acked-by: Bertrand Marquis --- docs/misra/rules.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index bb7e1ea396..7b366edb07 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -593,6 +593,13 @@ maintainers if you want to suggest a change. - Variable-length array types shall not be used - + * - `Rule 18.6 `_ + - Required + - The address of an object with automatic storage shall not be + copied to another object that persists after the first object has + ceased to exist + - + * - `Rule 19.1 `_ - Mandatory - An object shall not be assigned or copied to an overlapping