Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use snprintf, strlcat and strlcpy instead of sprintf, strcat and strcpy #300

Open
Julien-Elie opened this issue Feb 27, 2024 · 0 comments
Open
Labels
bug Something isn't working C: general Related to several components P: low Low priority
Milestone

Comments

@Julien-Elie
Copy link
Contributor

These warnings would be worthwhile fixing. They're emitted during a build on OpenBSD:

art.c:1039(art.o:(ARTpost)): warning: sprintf() is often misused, please use snprintf()
nnrpd.c:1442(nnrpd.o:(main)): warning: sprintf() is often misused, please use snprintf()
configfile.y:761(config_y.o:(yyparse)): warning: sprintf() is often misused, please use snprintf()
configfile.y:761(config_y.o:(yyparse)): warning: sprintf() is often misused, please use snprintf()
imap_connection.c:3230(imap_connection.o:(lmtp_readCB)): warning: strcat() is almost always misused, please use strlcat()
expirectl.c:268(expirectl.o:(main)): warning: strcpy() is almost always misused, please use strlcpy()
expirectl.c:262(expirectl.o:(main)): warning: sprintf() is often misused, please use snprintf()
art.c:1039(../innd/art.o:(ARTpost)): warning: sprintf() is often misused, please use snprintf()
art.c:1039(../innd/art.o:(ARTpost)): warning: sprintf() is often misused, please use snprintf()
inet_ntoa.c:47 (../lib/inet_ntoa.c:47)(lib/inet_ntoa.o:(test_inet_ntoa)): warning: sprintf() is often misused, please use snprintf()
messages-t.c:291 (lib/messages-t.c:291)(lib/messages-t.o:(main)): warning: sprintf() is often misused, please use snprintf()
snprintf-t.c:159 (lib/snprintf-t.c:159)(lib/snprintf-t.o:(main)): warning: sprintf() is often misused, please use snprintf()
@Julien-Elie Julien-Elie added bug Something isn't working C: general Related to several components P: low Low priority labels Feb 27, 2024
@Julien-Elie Julien-Elie added this to the 2.7.x milestone Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C: general Related to several components P: low Low priority
Development

No branches or pull requests

1 participant