[riot-notifications] [RIOT-OS/RIOT] cpu/esp32: fixes the memset optimization problem in esp_wifi/wpa_supplicant (#10801)

Kees Bakker notifications at github.com
Fri Jan 18 21:33:30 CET 2019


keestux commented on this pull request.



> @@ -595,3 +595,18 @@ void system_wdt_start (void)
     TIMERG0.wdt_wprotect = 0;     /* enable write protection */
     xt_ints_on(BIT(CPU_INUM_WDT));
 }
+
+__attribute__((weak)) void
+_system_prevent_memset_lto(void *const  s, int c, const size_t n)
+{
+    (void) s;
+    (void) c;
+    (void) n;
+}
+
+void *system_secure_memset(void *s, int c, size_t n)
+{
+    memset(s, c, n);
+    _system_prevent_memset_lto(s, c, n);

OK, thanks for checking.
ACK for the change then

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10801#discussion_r249177740
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190118/d62a650e/attachment-0001.html>


More information about the notifications mailing list