[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] memset 0 in obscure is optimized away by compiler
From:       Rolf Eike Beer <eb () emlix ! com>
Date:       2022-10-05 11:19:51
Message-ID: 5622639.DvuYhMxLoT () devpool047
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Am Samstag, 1. Oktober 2022, 21:48:39 CEST schrieb Bernhard Reutner-Fischer:
> On Wed, 16 Apr 2014 20:25:39 -0400
> 
> > That's exactly the situation here. The lifetime of the object being
> > cleared by memset ends sufficiently close to the memset that the
> > compiler is able to achieve the same observable effects that would be
> > seen in the abstract machine without actually performing any memory
> > fill.
> 
> There are several possibilities out there in the wild that currently
> work around the (unimplemented, everywhere) microsoft _s "extension".
> 
> 3) ...

Use explicit_bzero() when available, or create such a function for 
configurations where it is not.

Eike
-- 
Rolf Eike Beer, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Gothaer Platz 3, 37083 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055

emlix - smart embedded open source

["signature.asc" (application/pgp-signature)]

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic