aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorChuhong Yuan <[email protected]>2019-07-31 10:01:40 +0800
committerMaxime Ripard <[email protected]>2019-08-03 12:03:01 +0200
commit9b562437d388582f5463a4c3f60ee97a2d4d8d58 (patch)
tree1041e65119331850ae8a872449a421130c9b3536 /lib/test_overflow.c
parent58540594570778fd149cd8c9b2bff61f2cefa8c9 (diff)
drm/modes: Fix unterminated strncpy
strncpy(dest, src, strlen(src)) leads to unterminated dest, which is dangerous. Fix it by using strscpy. Fixes: 3aeeb13d8996 ("drm/modes: Support modes names on the command line") Signed-off-by: Chuhong Yuan <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions