Good day all,
I'm using libusbx v1.0.17 and gcc via Code::Blocks. Currently all I have in
my code is a Win32 Dialog skeleton and the MinGW32 libusb-1.0.a static
library linked and I do have <stdio.h> and <stdarg.h> included.
When I compile I get two undefined references to '__ms_vsnprintf'
libusb-1.0.a(libusb_1_0_1a-core.o):core.c:(.text+0xd3)
libusb-1.0.a(libusb_1_0_1a-core.o):core.c:(.text+0x3ca)
I don't remember ever having to link anything additional to be able to use
libusbx. Am I missing something?
Furthermore, according to Microsoft [1] vsnprintf is a deprecated function
and vsnprintf_s should be used.
If vsnprintf if to be used in core.c perhaps it should be changed to:
text_len = vsnprintf_s(buf + header_len, sizeof(buf) - header_len, sizeof(
buf) - header_len format, args);
--or--
text_len = vsnprintf_s(buf + header_len, sizeof(buf) - header_len, _TRUNCATE
format, args);
but the later may be windows specific.
Regardless, may be an unnecessary change in order to "keep up with the
Jones'" of deprecating functions based off unforeseen vulnerabilities or
the wishful thinking that people wouldn't use functions for bad.
$.02
[1] http://msdn.microsoft.com/en-us/library/1kt27hek.aspx
--
-Austyn
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel