Your message dated Sun, 31 Jan 2010 07:42:37 +0000
with message-id <[email protected]>
and subject line swftools has been removed from Debian, closing #500575
has caused the Debian Bug report #500575,
regarding swftools: png2swf has an arbitrary file number limit (with patch)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
500575: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500575
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: swftools
Version: 0.8.1-1
Severity: normal

The png2swf program cannot handle more than 1024 files on the command
line.  This limit is arbitrary and easily removed.  Here is a patch
which does so:

--- png2swf.c.orig      2008-09-29 15:30:54.000000000 +0200
+++ png2swf.c   2008-09-29 15:20:40.000000000 +0200
@@ -27,7 +27,6 @@
 #include "../lib/rfxswf.h"
 #include "../lib/args.h"
 
-#define MAX_INPUT_FILES 1024
 #define VERBOSE(x) (global.verbose>=x)
 
 struct {
@@ -46,7 +45,7 @@ struct {
 
 struct {
     char *filename;
-} image[MAX_INPUT_FILES];
+} *image;
 
 static int custom_move=0;
 static int move_x=0;
@@ -994,13 +993,15 @@ int args_callback_command(char *arg, cha
            fprintf(stderr, "Error opening input file: %s\n", arg);
        free(s);
     } else {
+        static max_input_files = 0;
+       if (global.nfiles == max_input_files) {
+           if (max_input_files == 0)
+               image = malloc((max_input_files = 1024) * sizeof(*image));
+           else
+               image = realloc(image, (max_input_files *= 2) * sizeof(*image));
+       }
        image[global.nfiles].filename = s;
        global.nfiles++;
-       if (global.nfiles >= MAX_INPUT_FILES) {
-           if (VERBOSE(1))
-               fprintf(stderr, "Error: Too many input files.\n");
-           exit(1);
-       }
     }
     return 0;
 }



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, lc_ctype=it...@euro (charmap=ANSI_X3.4-1968) (ignored: LC_ALL 
set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages swftools depends on:
ii  gsfonts       1:8.11+urwcyr1.0.7~pre44-3 Fonts for the Ghostscript interpre
ii  libart-2.0-2  2.3.20-2                   Library of functions for 2D graphi
ii  libc6         2.7-13                     GNU C Library: Shared libraries
ii  libfreetype6  2.3.7-2                    FreeType 2 font engine, shared lib
ii  libgcc1       1:4.3.1-9                  GCC support library
ii  libgif4       4.1.6-5                    library for GIF images (library)
ii  libjpeg62     6b-14                      The Independent JPEG Group's JPEG 
ii  libmp3lame0   3.98-0.1                   LAME Ain't an MP3 Encoder
ii  libstdc++6    4.3.1-9                    The GNU Standard C++ Library v3
ii  zlib1g        1:1.2.3.3.dfsg-12          compression library - runtime

swftools recommends no packages.

Versions of packages swftools suggests:
ii  ghostscript [gs-common]  8.62.dfsg.1-3.1 The GPL Ghostscript PostScript/PDF
ii  gs-common                8.62.dfsg.1-3.1 Transitional package

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 0.8.1-2.1+rm

The swftools package has been removed from Debian so we are closing
the bugs that were still open against it.

For more information about this package's removal, read
http://bugs.debian.org/566575

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

Kind regards,
--
Raphael Geissert


--- End Message ---

Reply via email to