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

possible buffer overflow #28

Open
ilka-schulz opened this issue Feb 8, 2022 · 0 comments
Open

possible buffer overflow #28

ilka-schulz opened this issue Feb 8, 2022 · 0 comments

Comments

@ilka-schulz
Copy link

make all makes gcc warn:

ecc/d_param.c: In function ‘d_out_str’:
ecc/d_param.c:89:22: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 3 [-Wformat-overflow=]
   89 |     sprintf(s, "coeff%d", i);
      |                      ^~
ecc/d_param.c:89:16: note: directive argument in the range [0, 1073741822]
   89 |     sprintf(s, "coeff%d", i);
      |                ^~~~~~~~~
ecc/d_param.c:89:5: note: ‘sprintf’ output between 7 and 16 bytes into a destination of size 8
   89 |     sprintf(s, "coeff%d", i);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant