summaryrefslogtreecommitdiff
path: root/curve.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-10-21 11:49:26 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-10-21 11:49:26 +0200
commit8368a551382bfa3a50b393873be341cd3c17f6df (patch)
treea23f02a7f33850f6e001af4cb3ebeee816f8a867 /curve.h
parent7e7bfc9f66066771804af28ae293dca3d9b7f4bb (diff)
csum: Don't drop const qualifier during cast
Don't drop const qualifier during cast to void * Found by compiling with -Wcast-qual. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'curve.h')
0 files changed, 0 insertions, 0 deletions
3ddbb26b70acfa8947&id2=d9b2997e4a0a874e452df7cdd7de5a54502bd0aa'>diff)
usb: gadget: f_fs: Assorted buffer overflow checks.
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> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/Makefile')