gwcheck

Check .gnu.warning.* sections in ELF object files
Log | Files | Refs | README | LICENSE

commit 5de83e8bd16c529dd4f6425a388acfbf21326e04
parent 7663b7320b0695f052374711bce7ecca43a9ddf3
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  4 Nov 2021 21:35:25 +0100

Populate the example section of README.

Diffstat:
MREADME.md | 32++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -22,6 +22,38 @@ The options are as follows: ## Example +Here is the output of running gwcheck on OpenBSD 7.0 libc: + + $ gwcheck libc.so.96.1 + .gnu.warning.strcpy: + strcpy() is almost always misused, please use strlcpy() + .gnu.warning.stpcpy: + stpcpy() is dangerous; do not use it + .gnu.warning.wcscat: + wcscat() is almost always misused, please use wcslcat() + .gnu.warning.sprintf: + sprintf() is often misused, please use snprintf() + .gnu.warning.tempnam: + tempnam() possibly used unsafely; consider using mkstemp() + .gnu.warning.vsprintf: + vsprintf() is often misused, please use vsnprintf() + .gnu.warning.mktemp: + mktemp() possibly used unsafely; consider using mkstemp() + .gnu.warning.strcat: + strcat() is almost always misused, please use strlcat() + .gnu.warning.wcscpy: + wcscpy() is almost always misused, please use wcslcpy() + .gnu.warning.rand_r: + rand_r() is not random, it is deterministic. + .gnu.warning.rand: + rand() may return deterministic values, is that what you want? + .gnu.warning.getwd: + getwd() possibly used unsafely; consider using getcwd() + .gnu.warning.random: + random() may return deterministic values, is that what you want? + .gnu.warning.tmpnam: + tmpnam() possibly used unsafely; consider using mkstemp() + ## License gwcheck is released under the BSD 2-Clause license. See `LICENSE` file for details.