commit | 3f7b68eaf11729af6fd19112db5bb931999c78d8 | [log] [tgz] |
---|---|---|
author | meacer@chromium.org <meacer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Feb 13 06:06:04 2013 |
committer | meacer@chromium.org <meacer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Feb 13 06:06:04 2013 |
tree | e214502052491bcfb7fa06fcb23a619bd18d1171 | |
parent | 28b5598611193a43d27f0126f98153cf24155a85 [diff] |
Add validation to length, packets and packet_length parameters of the Usb Api. Parameter limits are determined from the following: packets: 4MB from http://msdn.microsoft.com/en-us/library/windows/hardware/ff538112(v=vs.85).aspx packet_length: 65k since wMaxPacketSize is 16bit integer: http://msdn.microsoft.com/en-us/library/ee437177.aspx BUG=169765 R=gdk@chromium.org,miket@chromium.org Review URL: https://chromiumcodereview.appspot.com/12096024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182128 0039d316-1c4b-4281-b951-d872f2087c98