Commit f604dfa
Mailbox: Avoid possible out-of-range write
tfm_mailbox_hal_init() should ensure that spe_mailbox_queue.ns_slot_count
is always <= NUM_MAILBOX_QUEUE_SLOT, but it's safest to also check
before writing to the spe_mailbox_queue.queue[] array.
Signed-off-by: Chris Brand <chris.brand@cypress.com>
Change-Id: I67e03295df0989a125c1f2460fd086c1a8688c431 parent 144178f commit f604dfa
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
373 | 375 | | |
374 | 376 | | |
375 | 377 | | |
| |||
0 commit comments