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
3 files changed