zip-3.0-format-security.patch 564 B

123456789101112131415161718192021
  1. --- a/zip.c
  2. +++ a/zip.c
  3. @@ -1028,7 +1028,7 @@ local void help_extended()
  4. for (i = 0; i < sizeof(text)/sizeof(char *); i++)
  5. {
  6. - printf(text[i]);
  7. + printf("%s", text[i]);
  8. putchar('\n');
  9. }
  10. #ifdef DOS
  11. @@ -1225,7 +1225,7 @@ local void version_info()
  12. CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE);
  13. for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++)
  14. {
  15. - printf(cryptnote[i]);
  16. + printf("%s", cryptnote[i]);
  17. putchar('\n');
  18. }
  19. ++i; /* crypt support means there IS at least one compilation option */