ports/misc/xdelta3/files/patch-testing_regtest.cc
Danilo Egea Gondolfo b8f0971377 - Update to 3.0.11
- Address CVE-2014-9765

PR:		207174
Submitted by:	junovitch
MFH:		2016Q1
2016-02-15 23:49:11 +00:00

11 lines
431 B
C++

--- testing/regtest.cc.orig 2016-02-15 23:07:07 UTC
+++ testing/regtest.cc
@@ -1006,7 +1006,7 @@ void FourWayMergeTest(const FileSpec &sp
ExtFile d01, d12, d23;
Options options;
options.encode_srcwin_maxsz =
- std::max(spec0.Size(), options.encode_srcwin_maxsz);
+ std::max((unsigned long long)spec0.Size(), (unsigned long long)options.encode_srcwin_maxsz);
spec0.WriteTmpFile(&f0);
spec1.WriteTmpFile(&f1);