diff options
author | Nuno Sá <nuno.sa@analog.com> | 2025-02-18 10:31:25 +0000 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-03-04 13:17:50 +0000 |
commit | 035b4989211dc1c8626e186d655ae8ca5141bb73 (patch) | |
tree | 32756425836b228e6a90afd5b4106ec81b6a8f32 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 1a21a9842e3b2e923c69cdccb3260a6d6b2494da (diff) |
iio: backend: make sure to NULL terminate stack buffer
Make sure to NULL terminate the buffer in
iio_backend_debugfs_write_reg() before passing it to sscanf(). It is a
stack variable so we should not assume it will 0 initialized.
Fixes: cdf01e0809a4 ("iio: backend: add debugFs interface")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250218-dev-iio-misc-v1-1-bf72b20a1eb8@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions