commit | f6ab8a59c69b929d2b4ac4e8c615416067b12461 | [log] [tgz] |
---|---|---|
author | Karl Meakin <karl.meakin@arm.com> | Mon Jan 22 17:03:02 2024 +0000 |
committer | Karl Meakin <karl.meakin@arm.com> | Wed Feb 14 17:53:24 2024 +0000 |
tree | cebad6e37354330bf4d88848fdfaa0a3bb0b0695 | |
parent | 071b83901ca8158981cc6f708aa11602047eb1dd [diff] |
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