diff options
| author | Kees Cook <[email protected]> | 2023-07-26 21:59:57 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2023-07-27 15:48:12 +0000 |
| commit | 630fdd592912614a72d00026fdadad72d9ef62eb (patch) | |
| tree | c4a1e62c8c507c7793750416fecdd98eeef5203e /scripts/gcc-plugins/gcc-common.h | |
| parent | soc: fsl: qe: Replace all non-returning strlcpy with strscpy (diff) | |
| download | kernel-630fdd592912614a72d00026fdadad72d9ef62eb.tar.gz kernel-630fdd592912614a72d00026fdadad72d9ef62eb.zip | |
seq_file: seq_show_option_n() is used for precise sizes
When seq_show_option_n() is used, it is for non-string memory that
happens to be printable bytes. As such, we must use memcpy() to copy the
bytes and then explicitly NUL-terminate the result.
Cc: Andy Shevchenko <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Muchun Song <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions
