Your message dated Sun, 14 Oct 2007 20:47:15 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#440060: fixed in cramfsswap 1.4
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: cramfsswap
Version: 1.3.1
Severity: normal
Tags: patch

Hi,

The source of present cramfsswap doesn't support 4096 numbers or
more of files.
It makes an error of cramfsswap when 4096 more files are in cramfs.
I wrote patch to solve this problem.
Could you apply this patch?

regards,
 Nobuhiro

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cramfsswap depends on:
ii  libc6                   2.6.1-1          GNU C Library: Shared libraries
ii  zlib1g                  1:1.2.3.3.dfsg-5 compression library - runtime

cramfsswap recommends no packages.

-- no debconf information


-- 
Nobuhiro Iwamatsu
        [EMAIL PROTECTED]
        [EMAIL PROTECTED]

        GPG ID : 3170EBE9
--- cramfsswap.c.orig	2007-08-29 21:13:45.000000000 +0900
+++ cramfsswap.c	2007-08-29 21:27:02.000000000 +0900
@@ -33,8 +33,8 @@
   uint8_t	        inode_in[12], inode_out[12];
   struct cramfs_inode	inode;
   unsigned int		filecnt, file, filepos, remaining, nblocks,
-                        fileoffset[MAXFILES], filesize[MAXFILES],
                         copybytes, readbytes, x;
+  unsigned int 		*fileoffset, *filesize;
   unsigned char		buffer[BUFFERSIZE], is_hostorder, host_is_le, file_is_le;
   int			infile, outfile;
   int			size;
@@ -154,6 +154,19 @@
     filecnt = superblock_out[11];
   printf("Filesystem contains %d files.\n", filecnt-1);
 
+  fileoffset = (unsigned int*)malloc( filecnt * sizeof( *fileoffset ));
+  if( fileoffset == NULL ){
+      perror("fileoffset malloc error");
+      exit(1);
+  }
+
+  filesize = (unsigned int*)malloc( filecnt * sizeof( *filesize ));
+  if( filesize == NULL ){
+      free( fileoffset ); fileoffset = NULL;
+      perror("filesize malloc error");
+      exit(1);
+  }
+
   /* Set filepos (in words) */
   filepos = 16;
 
@@ -334,7 +347,7 @@
   if (mapping != MAP_FAILED) {
     crc = crc32(0L, Z_NULL, 0);
     mapping[8] = is_hostorder?bswap_32(crc):crc;
-    crc = crc32(crc, (char *)mapping, size);
+    crc = crc32(crc, (unsigned char *)mapping, size);
     printf("CRC: 0x%08x\n", crc);
     mapping[8] = is_hostorder?bswap_32(crc):crc;
     munmap(mapping, size);

Attachment: pgprqoutZ05Bp.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: cramfsswap
Source-Version: 1.4

We believe that the bug you reported is fixed in the latest version of
cramfsswap, which is due to be installed in the Debian FTP archive:

cramfsswap_1.4.dsc
  to pool/main/c/cramfsswap/cramfsswap_1.4.dsc
cramfsswap_1.4.tar.gz
  to pool/main/c/cramfsswap/cramfsswap_1.4.tar.gz
cramfsswap_1.4_i386.deb
  to pool/main/c/cramfsswap/cramfsswap_1.4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Holzt <[EMAIL PROTECTED]> (supplier of updated cramfsswap package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 14 Oct 2007 22:03:07 +0200
Source: cramfsswap
Binary: cramfsswap
Architecture: source i386
Version: 1.4
Distribution: unstable
Urgency: low
Maintainer: Michael Holzt <[EMAIL PROTECTED]>
Changed-By: Michael Holzt <[EMAIL PROTECTED]>
Description: 
 cramfsswap - swap endianess of a cram filesystem (cramfs)
Closes: 440060
Changes: 
 cramfsswap (1.4) unstable; urgency=low
 .
   * cramfsswap can now handle cramfs filesystems with more than 4095 files
     thanks to a patch by Nobuhiro Iwamatsu (closes: Bug#440060).
Files: 
 eaf4e43d31e21349367ec786379ee72c 525 utils optional cramfsswap_1.4.dsc
 ccde7d104dccab141f637845578e8d1a 12233 utils optional cramfsswap_1.4.tar.gz
 a24a2bb2abf33dbb5826b08e845624a7 6728 utils optional cramfsswap_1.4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHEnZSUJiA4/ahDC0RAg+QAKCldUYtYCC5xQVYhwgeWBY1ReAWjwCaA6fE
lmAd/flFp2ZhGALZLgaaPRM=
=G3/f
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to