summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorVincent Pelletier <plr.vincent@gmail.com>2017-01-18 00:57:44 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-09 08:02:46 +0100
commit9cf89ade1afd450a5ff25ee65acbebb94b011287 (patch)
tree87552b65e456316098322f51ba33e9a4c77362fc /net/lapb/lapb_timer.c
parente4c1e6648298230d9d401b831475a7845ee664eb (diff)
usb: gadget: f_fs: Assorted buffer overflow checks.
commit 83e526f2a2fa4b2e82b6bd3ddbb26b70acfa8947 upstream. OS descriptor head, when flagged as provided, is accessed without checking if it fits in provided buffer. Verify length before access. Also, there are other places where buffer length it checked after accessing offsets which are potentially past the end. Check buffer length before as well to fail cleanly. Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions