Re: [PATCH 1/5] fwu: developerbox: fix dfu alt buffer clearing

2025-04-14 Thread Mattijs Korpershoek
Hi Vincent, Thank you for the patch. On lun., avril 07, 2025 at 19:05, Vincent Stehlé wrote: > The set_dfu_alt_info() function calls the ALLOC_CACHE_ALIGN_BUFFER() > macro to declare a `buf' variable pointer into an array allocated on the > stack. It then calls the memset() function to clear th

[PATCH 1/5] fwu: developerbox: fix dfu alt buffer clearing

2025-04-08 Thread Vincent Stehlé
The set_dfu_alt_info() function calls the ALLOC_CACHE_ALIGN_BUFFER() macro to declare a `buf' variable pointer into an array allocated on the stack. It then calls the memset() function to clear the useable portion of the array using the idiomatic expression `sizeof(buf)'. While this would indeed w