<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_external_libusb/examples, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/'/>
<entry>
<title>xusb: Report SuperSpeedPlus</title>
<updated>2019-04-05T04:39:07+00:00</updated>
<author>
<name>Harry Mallon</name>
<email>hjmallon@gmail.com</email>
</author>
<published>2019-02-07T15:02:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/commit/?id=7997e322ab4b15661355ca3bab30366922709177'/>
<id>7997e322ab4b15661355ca3bab30366922709177</id>
<content type='text'>
Closes #530

Signed-off-by: Nathan Hjelm &lt;hjelmn@me.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #530

Signed-off-by: Nathan Hjelm &lt;hjelmn@me.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed many compiler warnings about sign and size mismatch</title>
<updated>2019-01-31T05:39:23+00:00</updated>
<author>
<name>Sean McBride</name>
<email>sean@rogue-research.com</email>
</author>
<published>2018-12-15T22:08:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/commit/?id=8a05a3f4e7424eb2071e4dbe1796cff3b660a141'/>
<id>8a05a3f4e7424eb2071e4dbe1796cff3b660a141</id>
<content type='text'>
- added various casts
- added some asserts where the casts made assumptions
- enabled additional warnings in Xcode project (especially -Wshorten-64-to-32)

Closes #509

Signed-off-by: Nathan Hjelm &lt;hjelmn@me.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- added various casts
- added some asserts where the casts made assumptions
- enabled additional warnings in Xcode project (especially -Wshorten-64-to-32)

Closes #509

Signed-off-by: Nathan Hjelm &lt;hjelmn@me.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Fix format-truncation on debug</title>
<updated>2018-12-05T17:13:08+00:00</updated>
<author>
<name>Victor Toso</name>
<email>me@victortoso.com</email>
</author>
<published>2018-08-07T07:45:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/commit/?id=fcf9a53595882149ebe3adfe833cd6ade2ce7e31'/>
<id>fcf9a53595882149ebe3adfe833cd6ade2ce7e31</id>
<content type='text'>
As description is used only for debug, we can extend it to be sure to
fit 256 from string variable plus 3 chars from " - " as described in
gcc warning below

 | testlibusb.c: In function ‘print_device.constprop’:
 | testlibusb.c:188:51: warning: ‘ - ’ directive output may be truncated writing 3 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
 |      snprintf(description, sizeof(description), "%s - ", string);
 |                                                    ^~~
 | testlibusb.c:188:5: note: ‘snprintf’ output between 4 and 259 bytes into a destination of size 256
 |      snprintf(description, sizeof(description), "%s - ", string);
 |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Closes #460

Signed-off-by: Victor Toso &lt;victortoso@redhat.com&gt;

Signed-off-by: Nathan Hjelm &lt;hjelmn@lanl.gov&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As description is used only for debug, we can extend it to be sure to
fit 256 from string variable plus 3 chars from " - " as described in
gcc warning below

 | testlibusb.c: In function ‘print_device.constprop’:
 | testlibusb.c:188:51: warning: ‘ - ’ directive output may be truncated writing 3 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
 |      snprintf(description, sizeof(description), "%s - ", string);
 |                                                    ^~~
 | testlibusb.c:188:5: note: ‘snprintf’ output between 4 and 259 bytes into a destination of size 256
 |      snprintf(description, sizeof(description), "%s - ", string);
 |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Closes #460

Signed-off-by: Victor Toso &lt;victortoso@redhat.com&gt;

Signed-off-by: Nathan Hjelm &lt;hjelmn@lanl.gov&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing libusb_exit on an error condition</title>
<updated>2018-12-05T17:09:12+00:00</updated>
<author>
<name>gudenau</name>
<email>gudenau@users.noreply.github.com</email>
</author>
<published>2018-06-20T01:12:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/commit/?id=18a5f99ad3c071a3defef7e2ecf117489b8a8552'/>
<id>18a5f99ad3c071a3defef7e2ecf117489b8a8552</id>
<content type='text'>
Closes #448

Signed-off-by: Nathan Hjelm &lt;hjelmn@lanl.gov&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #448

Signed-off-by: Nathan Hjelm &lt;hjelmn@lanl.gov&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: testlibusb: Fix DDK build warning</title>
<updated>2018-03-25T00:42:46+00:00</updated>
<author>
<name>Chris Dickens</name>
<email>christopher.a.dickens@gmail.com</email>
</author>
<published>2018-03-25T00:42:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/commit/?id=f69255217c3dd7868f284b5753ce6cdf208ace3b'/>
<id>f69255217c3dd7868f284b5753ce6cdf208ace3b</id>
<content type='text'>
Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed various trivial cppcheck 1.80 warnings</title>
<updated>2017-12-29T06:40:30+00:00</updated>
<author>
<name>Sean McBride</name>
<email>sean@rogue-research.com</email>
</author>
<published>2017-12-28T04:53:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/commit/?id=0b3d4c68d87a4ffda2a4e0ff86983f69599048ce'/>
<id>0b3d4c68d87a4ffda2a4e0ff86983f69599048ce</id>
<content type='text'>
Specifically:

redundantAssignment,examples/dpfp.c:422,style,Variable 'r' is reassigned a value before the old one has been used.
redundantAssignment,libusb/os/threads_posix.c:64,style,Variable 'ret' is reassigned a value before the old one has been used.
unreadVariable,libusb/os/netbsd_usb.c:217,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/netbsd_usb.c:235,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/openbsd_usb.c:251,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/openbsd_usb.c:275,style,Variable 'hpriv' is assigned a value that is never used.
unsignedLessThanZero,libusb/os/windows_winusb.c:259,style,Checking if unsigned variable '_index' is less than zero.
unsignedLessThanZero,libusb/os/windows_winusb.c:298,style,Checking if unsigned variable '_index' is less than zero.
unsignedLessThanZero,libusb/os/windows_winusb.c:367,style,Checking if unsigned variable '_index' is less than zero.
invalidPrintfArgType_sint,examples/xusb.c:534,warning,%d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Specifically:

redundantAssignment,examples/dpfp.c:422,style,Variable 'r' is reassigned a value before the old one has been used.
redundantAssignment,libusb/os/threads_posix.c:64,style,Variable 'ret' is reassigned a value before the old one has been used.
unreadVariable,libusb/os/netbsd_usb.c:217,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/netbsd_usb.c:235,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/openbsd_usb.c:251,style,Variable 'hpriv' is assigned a value that is never used.
unreadVariable,libusb/os/openbsd_usb.c:275,style,Variable 'hpriv' is assigned a value that is never used.
unsignedLessThanZero,libusb/os/windows_winusb.c:259,style,Checking if unsigned variable '_index' is less than zero.
unsignedLessThanZero,libusb/os/windows_winusb.c:298,style,Checking if unsigned variable '_index' is less than zero.
unsignedLessThanZero,libusb/os/windows_winusb.c:367,style,Checking if unsigned variable '_index' is less than zero.
invalidPrintfArgType_sint,examples/xusb.c:534,warning,%d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: xusb: replaced insecure sprintf with snprintf</title>
<updated>2017-12-29T06:40:30+00:00</updated>
<author>
<name>Sean McBride</name>
<email>sean@rogue-research.com</email>
</author>
<published>2017-12-28T03:34:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/commit/?id=f66c63e9f0ca621e1ee17ed5f5855f1b29f031dc'/>
<id>f66c63e9f0ca621e1ee17ed5f5855f1b29f031dc</id>
<content type='text'>
Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix unused parameter warnings</title>
<updated>2017-12-29T06:40:30+00:00</updated>
<author>
<name>Sean McBride</name>
<email>sean@rogue-research.com</email>
</author>
<published>2017-12-28T03:32:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/commit/?id=830a9cb27de66458850fa6eccc115c0dea4c138b'/>
<id>830a9cb27de66458850fa6eccc115c0dea4c138b</id>
<content type='text'>
Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: ezusb: Renamed header guard variable to not use reserved identifier</title>
<updated>2017-12-29T06:40:26+00:00</updated>
<author>
<name>Sean McBride</name>
<email>sean@rogue-research.com</email>
</author>
<published>2016-09-14T16:45:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/commit/?id=8e1a282583dbdc9debb69349e626cf0d66c5027c'/>
<id>8e1a282583dbdc9debb69349e626cf0d66c5027c</id>
<content type='text'>
Fixes clang -Wreserved-id-macro warning.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes clang -Wreserved-id-macro warning.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Misc: Fix testlibusb build on VS2013 and earlier and suppress warnings</title>
<updated>2017-12-27T07:58:00+00:00</updated>
<author>
<name>Chris Dickens</name>
<email>christopher.a.dickens@gmail.com</email>
</author>
<published>2017-12-27T07:58:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libusb/commit/?id=539a3230cff8aa3430d4948d377d2a9224302197'/>
<id>539a3230cff8aa3430d4948d377d2a9224302197</id>
<content type='text'>
Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
