Home
last modified time | relevance | path

Searched hist:"83129 bcd8e75f1ffbfc9a3bae3d60749b1d22fe3" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/services/std_svc/spm/el3_spmc/
H A Dspmc_main.c83129bcd8e75f1ffbfc9a3bae3d60749b1d22fe3 Mon Jan 22 17:03:02 UTC 2024 Karl Meakin <karl.meakin@arm.com> fix(el3-spmc): fix dangling pointer in FFA_CONSOLE_LOG

Fixes a dangling pointer bug in `spmc_ffa_console_log`.
`chars` was assigned to an array which went out of scope at the end of
the `if`/`else` block.

The solution is to `memcmpy` from the temporary array into `chars`,
which is now an array.

Signed-off-by: Karl Meakin <karl.meakin@arm.com>
Change-Id: I67d19ea25d09b72f38fcc67dab4acf449aa8f1b1