diff options
author | Trishansh Bhardwaj <tbhardwa@codeaurora.org> | 2017-12-22 11:53:26 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-01-09 01:04:35 -0800 |
commit | 1240d01e09fd4d3a351d3d14c5ebed2761c16ad5 (patch) | |
tree | 1d77a675d246ccd23ad7a1289677903321d45599 /net/ipv4/tcp_ipv4.c | |
parent | 55cc722ec6725f7547071a396606f6a04b9a75e8 (diff) |
msm: camera: Prevent buffer overread in write_logsync.
If userspace issues write with string of length 21 or more then
there is a chance that kernel will overread lbuf array.
This change makes sure that lbuf is NULL terminated.
Change-Id: I9ad6d5a607b2ff1f293512be9746ee554b076b10
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions