diff options
| author | Jan Höppner <hoeppner@linux.ibm.com> | 2025-11-26 17:06:34 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-26 10:14:17 -0700 |
| commit | a857d99201cc4eb3cb78b9dcb6f1d027ef3ae699 (patch) | |
| tree | 4f864b40e8ca2a7bc0e7913fe8a74e49206a1799 /tools/lib/python/kdoc/enrich_formatter.py | |
| parent | 43198756ee8cade0acc17a89f959764cd17776bb (diff) | |
s390/dasd: Use scnprintf() instead of sprintf()
Use scnprintf() instead of sprintf() for those cases where the
destination is an array and the size of the array is known at compile
time.
This prevents theoretical buffer overflows, but also avoids that people
again and again spend time to figure out if the code is actually safe.
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/lib/python/kdoc/enrich_formatter.py')
0 files changed, 0 insertions, 0 deletions
