]> git.pld-linux.org Git - packages/crossmingw32-libtiff.git/blob - libtiff-sec.patch
- http://bugs.gentoo.org/show_bug.cgi?id=135881
[packages/crossmingw32-libtiff.git] / libtiff-sec.patch
1 diff -ruN tiff-3.7.4-old/tools/tiffsplit.c tiff-3.7.4/tools/tiffsplit.c
2 --- tiff-3.7.4-old/tools/tiffsplit.c    2005-05-26 20:38:48.000000000 +0200
3 +++ tiff-3.7.4/tools/tiffsplit.c        2006-06-01 16:00:11.000000000 +0200
4 @@ -60,14 +60,13 @@
5                 return (-3);
6         }
7         if (argc > 2)
8 -               strcpy(fname, argv[2]);
9 +               snprintf(fname, sizeof(fname), "%s", argv[2]);
10         in = TIFFOpen(argv[1], "r");
11         if (in != NULL) {
12                 do {
13                         char path[1024+1];
14                         newfilename();
15 -                       strcpy(path, fname);
16 -                       strcat(path, ".tif");
17 +                       snprintf(path, sizeof(path), "%s.tif", fname);
18                         out = TIFFOpen(path, TIFFIsBigEndian(in)?"wb":"wl");
19                         if (out == NULL)
20                                 return (-2);
This page took 0.035076 seconds and 4 git commands to generate.