aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDaniel Thompson <[email protected]>2024-04-24 14:03:38 +0000
committerDaniel Thompson <[email protected]>2024-04-26 16:13:30 +0000
commitc9b51ddb66b1d96e4d364c088da0f1dfb004c574 (patch)
tree71ad387050acccda44f2dff7419220694ec72c21 /net/unix/af_unix.c
parentkdb: Merge identical case statements in kdb_read() (diff)
downloadkernel-c9b51ddb66b1d96e4d364c088da0f1dfb004c574.tar.gz
kernel-c9b51ddb66b1d96e4d364c088da0f1dfb004c574.zip
kdb: Use format-specifiers rather than memset() for padding in kdb_read()
Currently when the current line should be removed from the display kdb_read() uses memset() to fill a temporary buffer with spaces. The problem is not that this could be trivially implemented using a format string rather than open coding it. The real problem is that it is possible, on systems with a long kdb_prompt_str, to write past the end of the tmpbuffer. Happily, as mentioned above, this can be trivially implemented using a format string. Make it so! Cc: [email protected] Reviewed-by: Douglas Anderson <[email protected]> Tested-by: Justin Stitt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Thompson <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions