git: fa795d332e26 - main - editors/pdfedit: unreak build after boost upgrade
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 May 2022 20:17:43 UTC
The branch main has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=fa795d332e26221d789bcc48522b7e13a7ecca4d commit fa795d332e26221d789bcc48522b7e13a7ecca4d Author: Dima Panov <fluffy@FreeBSD.org> AuthorDate: 2022-05-22 18:54:38 +0000 Commit: Dima Panov <fluffy@FreeBSD.org> CommitDate: 2022-05-22 20:17:05 +0000 editors/pdfedit: unreak build after boost upgrade PR: 246106 --- editors/pdfedit/Makefile | 2 +- editors/pdfedit/files/patch-src-kernel-stateupdater.cc | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/editors/pdfedit/Makefile b/editors/pdfedit/Makefile index d3c3b51ca990..6d17a49e6f47 100644 --- a/editors/pdfedit/Makefile +++ b/editors/pdfedit/Makefile @@ -2,7 +2,7 @@ PORTNAME= pdfedit PORTVERSION= 0.4.5 -PORTREVISION= 15 +PORTREVISION= 16 CATEGORIES= editors MASTER_SITES= SF diff --git a/editors/pdfedit/files/patch-src-kernel-stateupdater.cc b/editors/pdfedit/files/patch-src-kernel-stateupdater.cc index ffeb6bd5ca73..4c5547b00339 100644 --- a/editors/pdfedit/files/patch-src-kernel-stateupdater.cc +++ b/editors/pdfedit/files/patch-src-kernel-stateupdater.cc @@ -1,6 +1,15 @@ --- src/kernel/stateupdater.cc.orig 2009-09-11 12:02:56 UTC +++ src/kernel/stateupdater.cc -@@ -1227,7 +1227,7 @@ bool checkAndFixOperator (const StateUpd +@@ -1207,7 +1207,7 @@ bool checkAndFixOperator (const StateUpdater::CheckTyp + PdfOperator::Operands::reverse_iterator rit = operands.rbegin (); + // Be careful -- buffer overflow + argNum = std::min (argNum, operands.size()); +- advance (rit, argNum); ++ boost::advance (rit, argNum); + PdfOperator::Operands::iterator it = rit.base (); + // Loop from the first operator to the end + for (int pos = 0; it != operands.end (); ++it, ++pos) +@@ -1227,7 +1227,7 @@ bool checkAndFixOperator (const StateUpdater::CheckTyp { // Convert it to real double dval = 0.0; dval = IProperty::getSmartCObjectPtr<CInt>(*it)->getValue();