diff options
author | Ben de Groot <yngwin@gentoo.org> | 2009-11-06 17:53:01 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2009-11-06 17:53:01 +0000 |
commit | d521b4290352d767a27f0bc2426d2a0536c18aac (patch) | |
tree | ced5ed63652d91d5b38948aa64132826c27847e3 /app-arch/libpar2/files | |
parent | Mask <net-im/kmess-2 and <net-misc/smb4k-0.10. (diff) | |
download | gentoo-2-d521b4290352d767a27f0bc2426d2a0536c18aac.tar.gz gentoo-2-d521b4290352d767a27f0bc2426d2a0536c18aac.tar.bz2 gentoo-2-d521b4290352d767a27f0bc2426d2a0536c18aac.zip |
Add patch to fix a segfault (bug 292079).
(Portage version: 2.2_rc48/cvs/Linux x86_64)
Diffstat (limited to 'app-arch/libpar2/files')
-rw-r--r-- | app-arch/libpar2/files/libpar2-0.2-bugfixes.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app-arch/libpar2/files/libpar2-0.2-bugfixes.patch b/app-arch/libpar2/files/libpar2-0.2-bugfixes.patch new file mode 100644 index 000000000000..cb3c938dfe74 --- /dev/null +++ b/app-arch/libpar2/files/libpar2-0.2-bugfixes.patch @@ -0,0 +1,29 @@ +diff -aud ../libpar2-0.2-original/par2repairer.cpp ../libpar2-0.2/par2repairer.cpp +--- ../libpar2-0.2-original/par2repairer.cpp 2006-01-20 18:25:20.000000000 +0100 ++++ ../libpar2-0.2/par2repairer.cpp 2008-02-06 12:02:53.226050300 +0100 +@@ -78,6 +78,7 @@ + + delete mainpacket; + delete creatorpacket; ++ delete headers; + } + + +@@ -1261,7 +1262,7 @@ + DiskFile::SplitFilename(filename, path, name); + + cout << "Target: \"" << name << "\" - missing." << endl; +- sig_done.emit(name, 0, sourcefile->GetVerificationPacket()->BlockCount()); ++ sig_done.emit(name, 0, sourcefile->GetVerificationPacket() ? sourcefile->GetVerificationPacket()->BlockCount() : 0); + } + } + +@@ -1804,7 +1805,7 @@ + } + } + } +- sig_done.emit(name,count,sourcefile->GetVerificationPacket()->BlockCount()); ++ sig_done.emit(name,count, sourcefile->GetVerificationPacket() ? sourcefile->GetVerificationPacket()->BlockCount() : 0); + sig_progress.emit(1000.0); + return true; + } |