summaryrefslogtreecommitdiff
path: root/fs/squashfs/xz_wrapper.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-10-31 13:40:39 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-03 16:22:50 -0800
commitd0915b2255bfbdd537fd6a52f9a0a7037ecbe2d5 (patch)
treea4e727a9f138f72a94f18d3a513cf9e5c824a183 /fs/squashfs/xz_wrapper.c
parentf8e4df53c785a3c19650e57b5c514a4b50d82078 (diff)
staging: r8188eu: get a string from the user correctly
The original code had two bugs: 1) It didn't check if the string was zero length so it could oops when it tried to dereference the ZERO_SIZE_PTR. 2) It didn't enforce that the string was NUL terminated. It was also messy as pants. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/squashfs/xz_wrapper.c')
0 files changed, 0 insertions, 0 deletions