This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit c83858bbb60154643249ec19cb94ad4c903d62fc
Author: yinshengkai <[email protected]>
AuthorDate: Wed Jun 12 19:30:43 2024 +0800

    note: fix note_common unaligned access
    
    Data in ARMV8-M may be aligned with less than 4 bytes, resulting in USAGE 
FAULT
    
    Signed-off-by: yinshengkai <[email protected]>
---
 drivers/note/note_driver.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/note/note_driver.c b/drivers/note/note_driver.c
index f5ce4785b3..3f6416cf2a 100644
--- a/drivers/note/note_driver.c
+++ b/drivers/note/note_driver.c
@@ -1441,7 +1441,7 @@ void sched_note_event_ip(uint32_t tag, uintptr_t ip, 
uint8_t event,
   FAR struct note_event_s *note;
   FAR struct note_driver_s **driver;
   bool formatted = false;
-  char data[255];
+  char data[256];
   unsigned int length;
   FAR struct tcb_s *tcb = this_task();
 
@@ -1491,7 +1491,7 @@ void sched_note_vprintf_ip(uint32_t tag, uintptr_t ip, 
FAR const char *fmt,
   FAR struct note_printf_s *note;
   FAR struct note_driver_s **driver;
   bool formatted = false;
-  uint8_t data[255];
+  uint8_t data[256];
   size_t length = 0;
   FAR struct tcb_s *tcb = this_task();
 

Reply via email to