[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
  • Date: Thu, 26 Jun 2025 16:45:24 +0200
  • Arc-authentication-results: i=1; bugseng.com; arc=none smtp.remote-ip=162.55.131.47
  • Arc-message-signature: i=1; d=bugseng.com; s=openarc; a=rsa-sha256; c=relaxed/relaxed; t=1750949124; h=DKIM-Signature:MIME-Version:Date:From:To:Cc:Subject:In-Reply-To: References:Message-ID:X-Sender:Organization:Content-Type: Content-Transfer-Encoding; bh=Qz0iB7aUQ9vqJuypBRbALfOZSr2anArAlOVnsRMt83c=; b=PMIYYsMP1p5CIW0QT+ZItd60oVL8/MdEzku71QbgX6r5zXPMIQ4A2OgvhBljmmidZqGQ aI9vvdiNDCFIeY3feycGAeeNflJdVzHwhaxjulCldiIjqHr+Jj+HrDkRxmo2IH78GqOpi khYheWuemn8qkdmq0iSqW4k0fHgeoW/T5x4+uqaXx2DrltIeJjp7a669CRQ8yOwuItkxa 7eeQzFVoEnCzfQBZ0dHtMznsliEJbhw2uoK0M63V8X4u2/PFrBeG0IV8YBKkZZ2eoX4nS 7z0i28GDQBBc1+C8sNxcKImoIVXZOlpjjX02BXst7Nv4uXoTDyREpJPQl5zBG94gHhUbp AKdt4YUqlXpXrQJoaavNljW3E5t/7B3idgoTlrq7W8s3+C3AWifNGoTXbkbBZ5uJRIqrH n4ZA3oZpDaEGG+D/iPLxRjCW9o+GaaYuH/ZMIn7xbu/0eqiHDKRouCkrVs30TiM1TiQ2m wy8Ed0s5TU7+F4QslPUB3iJ6EMDohiQPmhWvxC0f/y2MmIldzf3JqK/rif74fR518TaQV xnbIVLALx5ml6UA5Kctvgt563fGrszxKt3shCcDbxmfy8X73OSyAjrErpAlE7plY1tTMp VmgbnDOaB8fM8r0g8oBnWQQD4FfgeItmRYFsoukc6alJGZ0zRrN2QzGAVtGYuUU=
  • Arc-seal: i=1; d=bugseng.com; s=openarc; a=rsa-sha256; cv=none; t=1750949124; b=U3Ojx9d//tQtIb3KhvDi6ZEZNGQumKRkfh/hVx8sBBrGbcbXWEc9xcNQC84bgKKdmK2P xaMooXmpUfwtXQ09+yiNgcmufKEMBiVHzqQwq4t+i62c3LQ+ThZI/5dgbKH727iXOQy5l 02D8yNSG8H+I5i07ZtNf2j14Pxw97E886SZryVyCbQWYm/UpJP7Y7KlqctcPNql+sbJhD o9VRyvD9mXBapa4oSBVQTi/WWNBgR8xZ8hx4x2mX7OAA0Ih3Za7Qs46SPJujJFgPNEDDL M5xbnvM0hn05uAVwHuQM0JDH0eZcy9B77tIhTRdL1lroQLS1OxOLVze0AXqBdJbQpmhbf grg3aqvSz6ekB3CuFTN4UjciS5WD6FNgZv21kbMEF7oaSGqJ2Wz6Hwjwm+65ssiHAeUFT kc57HcgTLP9PX35P4YqOIU9NIph33hT/06E9k8YktpPq5LMrZAXR3SHpOVKyFpGOpw3f0 /o5y8PQI0fYD3odAqH6EBrwojJO3CfRQveN+nZimp5sOpbDpPvgCvZMe2gkAqcEbhL43b 4AQ7HsmD6fQrYVfBoDsbqG5N9ghdTfv/dTyaJzRiWv01VmDpYJ9M4Dbe1VyTKjMKfn/th A4lauEvI00KOwX7o7gRZHG7DqSTsIXZQFJ3Gn/Ob1LIKqdKcA3spdjAM0vW9MmY=
  • Authentication-results: bugseng.com; arc=none smtp.remote-ip=162.55.131.47
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, andrew.cooper3@xxxxxxxxxx, michal.orzel@xxxxxxx, julien@xxxxxxx, roger.pau@xxxxxxxxxx, Bertrand Marquis <bertrand.marquis@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 26 Jun 2025 14:45:34 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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
what coverage the rule has.)

Jan

In this case the rule covers just memcmp(): "The pointer arguments to the Standard Library function memcmp shall point to either a pointer type, an essentially signed type, an essentially unsigned type, an essentially Boolean type or an essentially enum type"

--
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.