R-devel raises warning about `sprintf`
Opened this issue · 0 comments
wch commented
I received an email from BDR:
Subject: CRAN packages using AsioHeaders headers
See the check warnings for
ipaddress iptools websocket
Please liaise with the maintainer of the headers you use to get these
changed to use snprintf, or use your own versions.
On the websocket CRAN page, it says the following:
Version: 1.4.1
Check: compiled code
Result: WARN
File 'websocket/libs/websocket.so':
Found 'sprintf', possibly from 'sprintf' (C)
Object: 'websocket_connection.o'
Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor use Fortran I/O
nor system RNGs nor [v]sprintf.
See 'Writing portable packages' in the 'Writing R Extensions' manual.
Flavors: [r-devel-linux-x86_64-debian-clang](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/websocket-00check.html), [r-devel-linux-x86_64-fedora-clang](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/websocket-00check.html)
Version: 1.4.1
Check: compiled code
Result: WARN
File ‘websocket/libs/websocket.so’:
Found ‘__sprintf_chk’, possibly from ‘sprintf’ (C)
Object: ‘websocket_connection.o’
Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor use Fortran I/O
nor system RNGs nor [v]sprintf.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
Flavors: [r-devel-linux-x86_64-debian-gcc](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-gcc/websocket-00check.html), [r-devel-linux-x86_64-fedora-gcc](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-gcc/websocket-00check.html)