On Sat, Jun 16, 2012 at 11:49 AM, Xiaofan Chen <[email protected]> wrote:
> On Sat, Jun 16, 2012 at 2:08 AM, Pete Batard <[email protected]> wrote:
>> It is my pleasure to announce the release of libusbx v1.0.12.
>
> Great.
>
> Since you mentioned clang quite a bit, so I tried to build
> this one under Mac OS X with Apple's clang compiler
> and it seems to be okay.
>
Here are the results for clang analyzer under Mac OS X.
mymacmini:build xiaofanc$ ~/bin/scan-build -k -v -V make
scan-build: Emitting reports for this run to
'/var/folders/_k/njr5n6mj09924bn1rfxx3slh0000gn/T/scan-build-2012-06-17-1'.
make all-recursive
Making all in libusb
CC libusb_1_0_la-core.lo
../../libusbx/libusb/core.c:700:4: warning: Function call argument is
an uninitialized value
libusb_free_device_list(devs, 1);
^ ~~~~
../../libusbx/libusb/core.c:706:2: warning: Function call argument is
an uninitialized value
libusb_free_device_list(devs, 1);
^ ~~~~
2 warnings generated.
CC libusb_1_0_la-descriptor.lo
CC libusb_1_0_la-io.lo
CC libusb_1_0_la-sync.lo
../../libusbx/libusb/sync.c:84:11: warning: Result of 'malloc' is
converted to a pointer of type 'unsigned char', which is incompatible
with sizeof operand type 'struct libusb_control_setup'
buffer = malloc(LIBUSB_CONTROL_SETUP_SIZE + wLength);
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
CC libusb_1_0_la-darwin_usb.lo
../../libusbx/libusb/os/darwin_usb.c:1713:11: warning: Access to field
'cfSource' results in a dereference of a null pointer (loaded from
variable 'hpriv')
if (hpriv->cfSource) {
^~~~~
1 warning generated.
CC libusb_1_0_la-threads_posix.lo
CCLD libusb-1.0.la
Making all in doc
make[2]: Nothing to be done for `all'.
Making all in examples
CC listdevs.o
CCLD listdevs
clang: warning: argument unused during compilation: '-std=gnu99'
CC xusb.o
CCLD xusb
clang: warning: argument unused during compilation: '-std=gnu99'
CC dpfp.o
../../libusbx/examples/dpfp.c:167:23: warning: Result of 'malloc' is
converted to a pointer of type 'unsigned char', which is incompatible
with sizeof operand type 'struct libusb_control_setup'
unsigned char *buf = malloc(LIBUSB_CONTROL_SETUP_SIZE + 1);
~~~~~~~~~~~~~~~ ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
CCLD dpfp
clang: warning: argument unused during compilation: '-std=gnu99'
CC dpfp_threaded-dpfp_threaded.o
../../libusbx/examples/dpfp_threaded.c:196:23: warning: Result of
'malloc' is converted to a pointer of type 'unsigned char', which is
incompatible with sizeof operand type 'struct libusb_control_setup'
unsigned char *buf = malloc(LIBUSB_CONTROL_SETUP_SIZE + 1);
~~~~~~~~~~~~~~~ ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
CCLD dpfp_threaded
clang: warning: argument unused during compilation: '-std=gnu99'
scan-build: 6 bugs found.
scan-build: Run 'scan-view
/var/folders/_k/njr5n6mj09924bn1rfxx3slh0000gn/T/scan-build-2012-06-17-1'
to examine bug reports.
scan-build: Analysis run complete.
scan-build: Viewing analysis results in
'/var/folders/_k/njr5n6mj09924bn1rfxx3slh0000gn/T/scan-build-2012-06-17-1'
using scan-view.
Starting scan-view at: http://127.0.0.1:8181
Use Ctrl-C to exit.
Unix API Allocator sizeof operand mismatch libusb /sync.c 84
1
Unix API Allocator sizeof operand mismatch examples
/dpfp_threaded.c 196 1
Unix API Allocator sizeof operand mismatch examples /dpfp.c
167 1
Logic error Dereference of null pointer libusb /os /darwin_usb.c
1713 5
Logic error Function call argument is an uninitialized value libusb
/core.c 700 5
Logic error Function call argument is an uninitialized value libusb
/core.c 706 3
--
Xiaofan
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libusbx-devel