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

sprintf bugs in readparam.c #1

Open
darked89 opened this issue Sep 30, 2019 · 0 comments
Open

sprintf bugs in readparam.c #1

darked89 opened this issue Sep 30, 2019 · 0 comments

Comments

@darked89
Copy link
Owner

./src/readparam.c: In function ‘ReadProfileSpliceSites’:
./src/readparam.c:512:75: warning: ‘%s’ directive writing up to 1599 bytes into a region of size 1573 [-Wformat-overflow=]
  512 |                                 sprintf(mess, "Wrong format: profile name %s \n\tis not admitted for donors [only %s, %s, %s, %s, %s, %s or %s]",
      |                                                                           ^~
  513 |                                         header, sprofileDON, sprofileU12gtagDON, sprofileU12atacDON, sprofileU2gcagDON, sprofileU2gtaDON, sprofileU2gtgDON, sprofileU2gtyDON);
      |                                         ~~~~~~                             
./src/readparam.c:512:33: note: ‘sprintf’ output between 211 and 1810 bytes into a destination of size 1600
  512 |                                 sprintf(mess, "Wrong format: profile name %s \n\tis not admitted for donors [only %s, %s, %s, %s, %s, %s or %s]",
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  513 |                                         header, sprofileDON, sprofileU12gtagDON, sprofileU12atacDON, sprofileU2gcagDON, sprofileU2gtaDON, sprofileU2gtgDON, sprofileU2gtyDON);
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./src/readparam.c:425:71: warning: ‘%s’ directive writing up to 1599 bytes into a region of size 1573 [-Wformat-overflow=]
  425 |                             sprintf(mess, "Wrong format: profile name %s \n\tis not admitted for acceptors [only %s, %s, %s, %s, %s or %s]",
      |                                                                       ^~
  426 |                                     header, sprofileACC, sprofilePPT, sprofileBP, sprofileU12BP, sprofileU12gtagACC, sprofileU12atacACC);
      |                                     ~~~~~~                             
./src/readparam.c:425:29: note: ‘sprintf’ output between 217 and 1816 bytes into a destination of size 1600
  425 |                             sprintf(mess, "Wrong format: profile name %s \n\tis not admitted for acceptors [only %s, %s, %s, %s, %s or %s]",
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  426 |                                     header, sprofileACC, sprofilePPT, sprofileBP, sprofileU12BP, sprofileU12gtagACC, sprofileU12atacACC);
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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