← Back to team overview

pkg-perl-maintainers team mailing list archive

[Bug 1886335] [NEW] crc32 error in case filename contains crc as decimal and absolut path is used

 

Public bug reported:

Description:	Ubuntu 20.04 LTS
Release:	20.04
libarchive-zip-perl:
  Installiert:           1.67-2
  Installationskandidat: 1.67-2
  Versionstabelle:
 *** 1.67-2 500
        500 http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu focal/main i386 Packages
        100 /var/lib/dpkg/status

This bug seems to appear when the crc value is starting with "0" and/or
decimal checksum with 8 characters is added to the filename

I have a zip-file with pk3 extension with a checksum of 0298fb7f
(decimal 43580287)

Happy case:
vecter@vecter-VirtualBox:/var/www/html/assets/truecombat$ crc32 43580287-pak101.pk3 
0298fb7f

Error (same file full path):
vecter@vecter-VirtualBox:/var/www/html/assets/truecombat$ crc32 /var/www/html/assets/truecombat/43580287-pak101.pk3 
0298fb7f	BAD 0298fb7f != 43580287

Expected behaviour would be that the result is the same as with the
happy case. Alternatively it should show the same behaviour one way or
the other...

#### Other tests with the same file ####
If I rename the file to 0298fb7f-pak101.pk3: 
vecter@vecter-VirtualBox:/var/www/html/assets/truecombat$ crc32 /var/www/html/assets/truecombat/0298fb7f-pak101.pk3 
0298fb7f	OK

If I rename the file to 1234-pak101.pk3: 
vecter@vecter-VirtualBox:/var/www/html/assets/truecombat$ crc32 /var/www/html/assets/truecombat/1234-pak101.pk3 
0298fb7f

If I rename the file to 1234567890-pak101.pk3:
vecter@vecter-VirtualBox:/var/www/html/assets/truecombat$ crc32 /var/www/html/assets/truecombat/1234567890-pak101.pk3 
0298fb7f

If I rename the file to 12345678-pak101.pk3:
vecter@vecter-VirtualBox:/var/www/html/assets/truecombat$ crc32 /var/www/html/assets/truecombat/12345678-pak101.pk3 
0298fb7f	BAD 0298fb7f != 12345678

If I use a relative path (or same folder) with the same name:
vecter@vecter-VirtualBox:/var/www/html/assets/truecombat$ crc32 12345678-pak101.pk3
0298fb7f

If I rename the file to pak101.pk3:
vecter@vecter-VirtualBox:/var/www/html/assets/truecombat$ crc32 /var/www/html/assets/truecombat/pak101.pk3 
0298fb7f

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: libarchive-zip-perl 1.67-2
ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
Uname: Linux 5.4.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun Jul  5 18:57:25 2020
Dependencies:
 
InstallationDate: Installed on 2020-06-01 (34 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: libarchive-zip-perl
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: libarchive-zip-perl (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal

-- 
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to libarchive-zip-perl in Ubuntu.
https://bugs.launchpad.net/bugs/1886335

Title:
  crc32 error in case filename contains crc as decimal and absolut path
  is used

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libarchive-zip-perl/+bug/1886335/+subscriptions