diff options
| author | Guvenc Gulce <[email protected]> | 2021-01-12 16:21:22 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-01-13 04:22:01 +0000 |
| commit | 8a4465368964b4fbaf084760c94c7aabf61059fb (patch) | |
| tree | 06a00842a100de9d64eaac60c872e98a060714db /net/lapb/lapb_out.c | |
| parent | smc: fix out of bound access in smc_nl_get_sys_info() (diff) | |
| download | kernel-8a4465368964b4fbaf084760c94c7aabf61059fb.tar.gz kernel-8a4465368964b4fbaf084760c94c7aabf61059fb.zip | |
net/smc: use memcpy instead of snprintf to avoid out of bounds read
Using snprintf() to convert not null-terminated strings to null
terminated strings may cause out of bounds read in the source string.
Therefore use memcpy() and terminate the target string with a null
afterwards.
Fixes: a3db10efcc4c ("net/smc: Add support for obtaining SMCR device list")
Signed-off-by: Guvenc Gulce <[email protected]>
Signed-off-by: Karsten Graul <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
