Package: libpar2-0
Version: 0.2-1.1

In parheaders.h, block_size, data_size, and chunk_size are ints (32bit). They need to be "long long" (64bit). The bug can be seen when running gpar2 on a parity set and observing that data size is negative.

With the proper fix (as follows), data size is reported correctly. Note: gpar2 needs to be relinked against the new libpar2 library for the fix to take effect.

#include <stdlib.h>
#include <iostream>
class ParHeaders {
public:
 std::string setid;
 int packets;
 int recovery_block;
 int recoverable_files;
 int other_files;
 long long block_size;
 int data_blocks;
 long long data_size;
 long long chunk_size;

 ParHeaders(void);

};

See patch here (LP #384143): https://bugs.launchpad.net/ubuntu/+source/libpar2/+bug/384143



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to