aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorAndrey Ryabinin <[email protected]>2015-01-27 16:00:19 +0300
committerEric Van Hensbergen <[email protected]>2015-03-20 07:34:43 -0700
commit179a5bc4b8cbe68ca675057b960dd805867e41c4 (patch)
tree600cff80e3c7483509d90ef2a4dad7db529a5ec3 /lib/memory-notifier-error-inject.c
parent6250a8badb311953a49bedb16ed17eb59d21c03a (diff)
net/9p: use memcpy() instead of snprintf() in p9_mount_tag_show()
p9_mount_tag_show() uses '%s' format string to print non-NULL terminated chan->tag string. This leads to out of bounds memory read, because format '%s' implies that string is NULL-terminated. The length of string is know here, so its simpler and safer to use memcpy instead of snprintf(). Signed-off-by: Andrey Ryabinin <[email protected]> Signed-off-by: Dominique Martinet <[email protected]> Signed-off-by: Eric Van Hensbergen <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions