diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-04-30 11:02:54 +0200 |
|---|---|---|
| committer | Max Filippov <jcmvbkbc@gmail.com> | 2026-04-30 02:26:48 -0700 |
| commit | 84477867e122251b8c47db240a8d699b0836aa6f (patch) | |
| tree | 83fb9268437d8ba0a0aebee853f1e52530d5f1e6 /include/uapi/linux/gpio.h | |
| parent | 028ef9c96e96197026887c0f092424679298aae8 (diff) | |
| download | linux-next-84477867e122251b8c47db240a8d699b0836aa6f.tar.gz linux-next-84477867e122251b8c47db240a8d699b0836aa6f.zip | |
tty: xtensa/iss: use strnlen to improve iss_console_write
Use strnlen() to limit scanning 's' to 'count' bytes. Use the length of
's' to decide if simc_write() should be called instead of dereferencing
it first and then calling strlen().
With strnlen(), iss_console_write() is further hardened against callers
where 's' is not NUL-terminated.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Message-ID: <20260430090253.237654-3-thorsten.blum@linux.dev>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'include/uapi/linux/gpio.h')
0 files changed, 0 insertions, 0 deletions
