poppler: initial import
This commit is contained in:
parent
fda66d37f3
commit
479fc561a4
115
poppler/.footprint
Normal file
115
poppler/.footprint
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
drwxr-xr-x root/root usr/
|
||||||
|
drwxr-xr-x root/root usr/include/
|
||||||
|
drwxr-xr-x root/root usr/include/poppler/
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Annot.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Array.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/BaseFile.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/BuiltinFont.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/BuiltinFontTables.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/CMap.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/CairoFontEngine.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/CairoOutputDev.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Catalog.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/CharCodeToUnicode.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/CharTypes.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/CompactFontTables.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Decrypt.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Dict.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Error.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/ErrorCodes.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/FontEncodingTables.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/FontInfo.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Function.cc
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Function.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Gfx.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/GfxFont.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/GfxState.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/GlobalParams.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/JArithmeticDecoder.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/JBIG2Stream.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/JPXStream.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Lexer.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Link.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/NameToCharCode.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/NameToUnicodeTable.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Object.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Outline.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/OutputDev.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/PDFDoc.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/PDFDocEncoding.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/PSOutputDev.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/PSTokenizer.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Page.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Parser.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/SplashOutputDev.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Stream-CCITT.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/Stream.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/TextOutputDev.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/UTF8.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/UnicodeMap.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/UnicodeMapTables.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/UnicodeTypeTable.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/XRef.h
|
||||||
|
drwxr-xr-x root/root usr/include/poppler/glib/
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/glib/poppler-action.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/glib/poppler-document.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/glib/poppler-enums.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/glib/poppler-page.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/glib/poppler.h
|
||||||
|
drwxr-xr-x root/root usr/include/poppler/goo/
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/goo/GooHash.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/goo/GooList.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/goo/GooMutex.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/goo/GooString.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/goo/GooTimer.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/goo/gfile.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/goo/gmem.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/goo/gtypes.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/poppler-config.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/poppler-qt.h
|
||||||
|
drwxr-xr-x root/root usr/include/poppler/splash/
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/Splash.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashBitmap.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashClip.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashErrorCodes.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashFTFont.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashFTFontEngine.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashFTFontFile.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashFont.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashFontEngine.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashFontFile.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashFontFileID.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashGlyphBitmap.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashMath.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashPath.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashPattern.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashScreen.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashState.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashT1Font.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashT1FontEngine.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashT1FontFile.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashTypes.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashXPath.h
|
||||||
|
-rw-r--r-- root/root usr/include/poppler/splash/SplashXPathScanner.h
|
||||||
|
drwxr-xr-x root/root usr/lib/
|
||||||
|
-rw-r--r-- root/root usr/lib/libpoppler-glib.a
|
||||||
|
-rwxr-xr-x root/root usr/lib/libpoppler-glib.la
|
||||||
|
lrwxrwxrwx root/root usr/lib/libpoppler-glib.so -> libpoppler-glib.so.0.0.0
|
||||||
|
lrwxrwxrwx root/root usr/lib/libpoppler-glib.so.0 -> libpoppler-glib.so.0.0.0
|
||||||
|
-rwxr-xr-x root/root usr/lib/libpoppler-glib.so.0.0.0
|
||||||
|
-rw-r--r-- root/root usr/lib/libpoppler-qt.a
|
||||||
|
-rwxr-xr-x root/root usr/lib/libpoppler-qt.la
|
||||||
|
lrwxrwxrwx root/root usr/lib/libpoppler-qt.so -> libpoppler-qt.so.0.0.0
|
||||||
|
lrwxrwxrwx root/root usr/lib/libpoppler-qt.so.0 -> libpoppler-qt.so.0.0.0
|
||||||
|
-rwxr-xr-x root/root usr/lib/libpoppler-qt.so.0.0.0
|
||||||
|
-rw-r--r-- root/root usr/lib/libpoppler.a
|
||||||
|
-rwxr-xr-x root/root usr/lib/libpoppler.la
|
||||||
|
lrwxrwxrwx root/root usr/lib/libpoppler.so -> libpoppler.so.0.0.0
|
||||||
|
lrwxrwxrwx root/root usr/lib/libpoppler.so.0 -> libpoppler.so.0.0.0
|
||||||
|
-rwxr-xr-x root/root usr/lib/libpoppler.so.0.0.0
|
||||||
|
drwxr-xr-x root/root usr/lib/pkgconfig/
|
||||||
|
-rw-r--r-- root/root usr/lib/pkgconfig/poppler-cairo.pc
|
||||||
|
-rw-r--r-- root/root usr/lib/pkgconfig/poppler-glib.pc
|
||||||
|
-rw-r--r-- root/root usr/lib/pkgconfig/poppler-qt.pc
|
||||||
|
-rw-r--r-- root/root usr/lib/pkgconfig/poppler-splash.pc
|
||||||
|
-rw-r--r-- root/root usr/lib/pkgconfig/poppler.pc
|
2
poppler/.md5sum
Normal file
2
poppler/.md5sum
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
90a6ec1188e8339eb63da9e5028fd3de CAN-2005-3193.patch
|
||||||
|
beb1eea135a3c5b679a7a22d01a500c0 poppler-0.4.2.tar.gz
|
118
poppler/CAN-2005-3193.patch
Normal file
118
poppler/CAN-2005-3193.patch
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
diff -ru poppler-0.4.2/poppler/JPXStream.cc poppler-0.4.2.CAN-2005-3193/poppler/JPXStream.cc
|
||||||
|
--- poppler-0.4.2/poppler/JPXStream.cc 2005-03-03 20:46:03.000000000 +0100
|
||||||
|
+++ poppler-0.4.2.CAN-2005-3193/poppler/JPXStream.cc 2005-12-02 14:44:39.000000000 +0100
|
||||||
|
@@ -666,7 +666,7 @@
|
||||||
|
int segType;
|
||||||
|
GBool haveSIZ, haveCOD, haveQCD, haveSOT;
|
||||||
|
Guint precinctSize, style;
|
||||||
|
- Guint segLen, capabilities, comp, i, j, r;
|
||||||
|
+ Guint segLen, capabilities, nTiles, comp, i, j, r;
|
||||||
|
|
||||||
|
//----- main header
|
||||||
|
haveSIZ = haveCOD = haveQCD = haveSOT = gFalse;
|
||||||
|
@@ -701,8 +701,13 @@
|
||||||
|
/ img.xTileSize;
|
||||||
|
img.nYTiles = (img.ySize - img.yTileOffset + img.yTileSize - 1)
|
||||||
|
/ img.yTileSize;
|
||||||
|
- img.tiles = (JPXTile *)gmalloc(img.nXTiles * img.nYTiles *
|
||||||
|
- sizeof(JPXTile));
|
||||||
|
+ nTiles = img.nXTiles * img.nYTiles;
|
||||||
|
+ // check for overflow before allocating memory
|
||||||
|
+ if (nTiles == 0 || nTiles / img.nXTiles != img.nYTiles) {
|
||||||
|
+ error(getPos(), "Bad tile count in JPX SIZ marker segment");
|
||||||
|
+ return gFalse;
|
||||||
|
+ }
|
||||||
|
+ img.tiles = (JPXTile *)gmalloc(nTiles * sizeof(JPXTile));
|
||||||
|
for (i = 0; i < img.nXTiles * img.nYTiles; ++i) {
|
||||||
|
img.tiles[i].tileComps = (JPXTileComp *)gmalloc(img.nComps *
|
||||||
|
sizeof(JPXTileComp));
|
||||||
|
diff -ru poppler-0.4.2/poppler/Stream.cc poppler-0.4.2.CAN-2005-3193/poppler/Stream.cc
|
||||||
|
--- poppler-0.4.2/poppler/Stream.cc 2005-04-27 22:56:18.000000000 +0200
|
||||||
|
+++ poppler-0.4.2.CAN-2005-3193/poppler/Stream.cc 2005-12-02 14:55:05.000000000 +0100
|
||||||
|
@@ -415,18 +415,32 @@
|
||||||
|
|
||||||
|
StreamPredictor::StreamPredictor(Stream *strA, int predictorA,
|
||||||
|
int widthA, int nCompsA, int nBitsA) {
|
||||||
|
+ int totalBits;
|
||||||
|
str = strA;
|
||||||
|
predictor = predictorA;
|
||||||
|
width = widthA;
|
||||||
|
nComps = nCompsA;
|
||||||
|
nBits = nBitsA;
|
||||||
|
+ predLine = NULL;
|
||||||
|
+ ok = gFalse;
|
||||||
|
|
||||||
|
nVals = width * nComps;
|
||||||
|
+ totalBits = nVals * nBits;
|
||||||
|
+ if (totalBits == 0 ||
|
||||||
|
+ (totalBits / nBits) / nComps != width ||
|
||||||
|
+ totalBits + 7 < 0) {
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
pixBytes = (nComps * nBits + 7) >> 3;
|
||||||
|
- rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes;
|
||||||
|
+ rowBytes = ((totalBits + 7) >> 3) + pixBytes;
|
||||||
|
+ if (rowBytes < 0) {
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
predLine = (Guchar *)gmalloc(rowBytes);
|
||||||
|
memset(predLine, 0, rowBytes);
|
||||||
|
predIdx = rowBytes;
|
||||||
|
+
|
||||||
|
+ ok = gTrue;
|
||||||
|
}
|
||||||
|
|
||||||
|
StreamPredictor::~StreamPredictor() {
|
||||||
|
@@ -1020,6 +1034,10 @@
|
||||||
|
FilterStream(strA) {
|
||||||
|
if (predictor != 1) {
|
||||||
|
pred = new StreamPredictor(this, predictor, columns, colors, bits);
|
||||||
|
+ if (!pred->isOk()) {
|
||||||
|
+ delete pred;
|
||||||
|
+ pred = NULL;
|
||||||
|
+ }
|
||||||
|
} else {
|
||||||
|
pred = NULL;
|
||||||
|
}
|
||||||
|
@@ -2907,6 +2925,10 @@
|
||||||
|
height = read16();
|
||||||
|
width = read16();
|
||||||
|
numComps = str->getChar();
|
||||||
|
+ if (numComps <= 0 || numComps > 4) {
|
||||||
|
+ error(getPos(), "Bad number of components in DCT stream", prec);
|
||||||
|
+ return gFalse;
|
||||||
|
+ }
|
||||||
|
if (prec != 8) {
|
||||||
|
error(getPos(), "Bad DCT precision %d", prec);
|
||||||
|
return gFalse;
|
||||||
|
@@ -3268,6 +3290,10 @@
|
||||||
|
FilterStream(strA) {
|
||||||
|
if (predictor != 1) {
|
||||||
|
pred = new StreamPredictor(this, predictor, columns, colors, bits);
|
||||||
|
+ if (!pred->isOk()) {
|
||||||
|
+ delete pred;
|
||||||
|
+ pred = NULL;
|
||||||
|
+ }
|
||||||
|
} else {
|
||||||
|
pred = NULL;
|
||||||
|
}
|
||||||
|
diff -ru poppler-0.4.2/poppler/Stream.h poppler-0.4.2.CAN-2005-3193/poppler/Stream.h
|
||||||
|
--- poppler-0.4.2/poppler/Stream.h 2005-04-27 22:56:18.000000000 +0200
|
||||||
|
+++ poppler-0.4.2.CAN-2005-3193/poppler/Stream.h 2005-12-02 14:57:56.000000000 +0100
|
||||||
|
@@ -231,6 +231,8 @@
|
||||||
|
|
||||||
|
~StreamPredictor();
|
||||||
|
|
||||||
|
+ GBool isOk() { return ok; }
|
||||||
|
+
|
||||||
|
int lookChar();
|
||||||
|
int getChar();
|
||||||
|
|
||||||
|
@@ -248,6 +250,7 @@
|
||||||
|
int rowBytes; // bytes per line
|
||||||
|
Guchar *predLine; // line buffer
|
||||||
|
int predIdx; // current index in predLine
|
||||||
|
+ GBool ok;
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------
|
23
poppler/Pkgfile
Normal file
23
poppler/Pkgfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Description: a PDF rendering library based on xpdf 3.0
|
||||||
|
# URL: http://poppler.freedesktop.org/
|
||||||
|
# Maintainer: sten, nick dot steeves at shaw dot ca
|
||||||
|
# Packager:
|
||||||
|
# Depends on: t1lib, gtk, qt3, ghostscript
|
||||||
|
|
||||||
|
name=poppler
|
||||||
|
version=0.4.2
|
||||||
|
release=2
|
||||||
|
source=(http://poppler.freedesktop.org/$name-$version.tar.gz CAN-2005-3193.patch)
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
cd $name-$version
|
||||||
|
patch -p1 < ../CAN-2005-3193.patch
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--disable-debug
|
||||||
|
make
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
rm -rf $PKG/usr/share/locale
|
||||||
|
rm -rf $PKG/usr/share/doc
|
||||||
|
}
|
11
poppler/README
Normal file
11
poppler/README
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
Optional Dependencies:
|
||||||
|
|
||||||
|
gtk, and/or qt3
|
||||||
|
|
||||||
|
Note:
|
||||||
|
|
||||||
|
I built this against gtk and qt3. Should you omit the installation of
|
||||||
|
one of these, pkgmk may exclaim the following: ".footprint mismatch"!
|
||||||
|
This is not something to be particularly worried over, because it is
|
||||||
|
likely that if you don't have gtk/qt3 installed, then the reason is
|
||||||
|
that you don't want gtk/qt3 to take up your hard drive space. :-)
|
Loading…
x
Reference in New Issue
Block a user