You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gpio_free_array function was incorrectly passed ARRAY_SIZE(leds)
when freeing the 'buttons' array in multiple examples:
- examples/intrp.c
- examples/bottomhalf.c
- examples/bh_halfthreaded.c
This mismatch could lead to invalid memory access if the size of
'buttons' differs from 'leds'.
Updated all occurrences to use ARRAY_SIZE(buttons) for correctness.
Co-authored-by: EricccTaiwan <yphbchou0911@gmail.com>
Signed-off-by: Jordan Chiu <jordan871130@gmail.com>
0 commit comments