diff options
author | ale <ale@FreeBSD.org> | 2012-07-03 22:05:13 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2012-07-03 22:05:13 +0800 |
commit | 0defcb4fa3258e16a517f3e493d6e1dfb9ec5305 (patch) | |
tree | ccf86f0e8c49b50b1eff0bb7e9a5976ff5dd017c /devel | |
parent | c90fd1c387690bb24122378cba86d019b8b95fc5 (diff) | |
download | freebsd-ports-gnome-0defcb4fa3258e16a517f3e493d6e1dfb9ec5305.tar.gz freebsd-ports-gnome-0defcb4fa3258e16a517f3e493d6e1dfb9ec5305.tar.zst freebsd-ports-gnome-0defcb4fa3258e16a517f3e493d6e1dfb9ec5305.zip |
Fix a bug in PRTokeniser.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/itext/Makefile | 2 | ||||
-rw-r--r-- | devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/devel/itext/Makefile b/devel/itext/Makefile index 4110a113cbce..4c1336c17edd 100644 --- a/devel/itext/Makefile +++ b/devel/itext/Makefile @@ -8,7 +8,7 @@ PORTNAME= itext PORTVERSION= 4.2.0 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= devel java MASTER_SITES= ${MASTER_SITE_LOCAL} diff --git a/devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java b/devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java new file mode 100644 index 000000000000..b9d3044f4773 --- /dev/null +++ b/devel/itext/files/patch-core_com_lowagie_text_pdf_PRTokeniser.java @@ -0,0 +1,15 @@ +--- core/com/lowagie/text/pdf/PRTokeniser.java.orig 2012-07-03 16:02:24.000000000 +0200 ++++ core/com/lowagie/text/pdf/PRTokeniser.java 2012-07-03 16:03:30.000000000 +0200 +@@ -281,6 +281,12 @@ + } + } + } ++ if (level > 0) { ++ file.seek(ptr); ++ type = TK_NUMBER; ++ stringValue = n1; ++ return; ++ } + // if we hit here, the file is either corrupt (stream ended unexpectedly), + // or the last token ended exactly at the end of a stream. This last + // case can occur inside an Object Stream. |