OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../libtiff/CVE-2006-2656.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -Nur tiff-3.7.4-orig/tools/tiffsplit.c tiff-3.7.4/tools/tiffsplit.c
  17. --- tiff-3.7.4-orig/tools/tiffsplit.c 2005-05-26 18:38:48.000000000 +0000
  18. +++ tiff-3.7.4/tools/tiffsplit.c 2006-05-31 14:50:05.049544500 +0000
  19. @@ -59,14 +59,16 @@
  20. fprintf(stderr, "usage: tiffsplit input.tif [prefix]\n");
  21. return (-3);
  22. }
  23. - if (argc > 2)
  24. - strcpy(fname, argv[2]);
  25. + if (argc > 2) {
  26. + strncpy(fname, argv[2], 1024);
  27. + fname[1024] = '\0';
  28. + }
  29. in = TIFFOpen(argv[1], "r");
  30. if (in != NULL) {
  31. do {
  32. char path[1024+1];
  33. newfilename();
  34. - strcpy(path, fname);
  35. + strncpy(path, fname, 1020);
  36. strcat(path, ".tif");
  37. out = TIFFOpen(path, TIFFIsBigEndian(in)?"wb":"wl");
  38. if (out == NULL)