commit | 31ef461089e795b4347499e792a6a5c88425aeae | [log] [tgz] |
---|---|---|
author | Chase Wu <chasewu@google.com> | Thu Jan 12 15:31:04 2023 +0800 |
committer | Chase Wu <chasewu@google.com> | Thu Jan 12 17:44:26 2023 +0800 |
tree | 4c639713c3c5888832275c2e9be269b5239f8fd0 | |
parent | 35d385c24c28edeeab94483ee9beb423b5eee3c1 [diff] |
misc: cs40l25: Use strscpy to write the buffer Use strscpy to write to the buffer in cs40l2x_cp_trigger_queue_show to avoid writing incorrect addresses using snprintf. Also, checking to see if the input trigger queue string is too large. Bug: 224000736 Test: push a poc file and check the log Change-Id: Id46d8a0dbe8eea188362e4f2ca54ccbd720d2bc8 Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com> Signed-off-by: Chase Wu <chasewu@google.com>