idx
int64
func_before
string
Vulnerability Classification
string
vul
int64
func_after
string
patch
string
CWE ID
string
lines_before
string
lines_after
string
3,200
void RunLengthStream::reset() { str->reset(); bufPtr = bufEnd = buf; eof = gFalse; }
Overflow
0
void RunLengthStream::reset() { str->reset(); bufPtr = bufEnd = buf; eof = gFalse; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,201
void CCITTFaxStream::reset() { int code1; ccittReset(gFalse); if (codingLine != NULL && refLine != NULL) { eof = gFalse; codingLine[0] = columns; } else { eof = gTrue; } while ((code1 = lookBits(12)) == 0) { eatBits(1); } if (code1 == 0x001) { eatBits(12); endOfLine = gTrue; ...
Overflow
0
void CCITTFaxStream::reset() { int code1; ccittReset(gFalse); if (codingLine != NULL && refLine != NULL) { eof = gFalse; codingLine[0] = columns; } else { eof = gTrue; } while ((code1 = lookBits(12)) == 0) { eatBits(1); } if (code1 == 0x001) { eatBits(12); endOfLine = gTrue; ...
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,202
void DCTStream::reset() { int i, j; dctReset(gFalse); if (!readHeader()) { y = height; return; } if (numComps == 1) { compInfo[0].hSample = compInfo[0].vSample = 1; } mcuWidth = compInfo[0].hSample; mcuHeight = compInfo[0].vSample; for (i = 1; i < numComps; ++i) { if (compInfo[i].hS...
Overflow
0
void DCTStream::reset() { int i, j; dctReset(gFalse); if (!readHeader()) { y = height; return; } if (numComps == 1) { compInfo[0].hSample = compInfo[0].vSample = 1; } mcuWidth = compInfo[0].hSample; mcuHeight = compInfo[0].vSample; for (i = 1; i < numComps; ++i) { if (compInfo[i].hS...
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,203
void BufStream::reset() { int i; str->reset(); for (i = 0; i < bufSize; ++i) { buf[i] = str->getChar(); } }
Overflow
0
void BufStream::reset() { int i; str->reset(); for (i = 0; i < bufSize; ++i) { buf[i] = str->getChar(); } }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,204
void FixedLengthEncoder::reset() { str->reset(); count = 0; }
Overflow
0
void FixedLengthEncoder::reset() { str->reset(); count = 0; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,205
void ASCII85Encoder::reset() { str->reset(); bufPtr = bufEnd = buf; lineLen = 0; eof = gFalse; }
Overflow
0
void ASCII85Encoder::reset() { str->reset(); bufPtr = bufEnd = buf; lineLen = 0; eof = gFalse; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,206
void RunLengthEncoder::reset() { str->reset(); bufPtr = bufEnd = nextEnd = buf; eof = gFalse; }
Overflow
0
void RunLengthEncoder::reset() { str->reset(); bufPtr = bufEnd = nextEnd = buf; eof = gFalse; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,207
void DCTStream::restart() { int i; inputBits = 0; restartCtr = restartInterval; for (i = 0; i < numComps; ++i) { compInfo[i].prevDC = 0; } eobRun = 0; }
Overflow
0
void DCTStream::restart() { int i; inputBits = 0; restartCtr = restartInterval; for (i = 0; i < numComps; ++i) { compInfo[i].prevDC = 0; } eobRun = 0; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,208
void FilterStream::setPos(Guint pos, int dir) { error(errInternal, -1, "Internal: called setPos() on FilterStream"); }
Overflow
0
void FilterStream::setPos(Guint pos, int dir) { error(errInternal, -1, "Internal: called setPos() on FilterStream"); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,209
void CachedFileStream::setPos(Guint pos, int dir) { Guint size; if (dir >= 0) { cc->seek(pos, SEEK_SET); bufPos = pos; } else { cc->seek(0, SEEK_END); size = (Guint)cc->tell(); if (pos > size) pos = (Guint)size; cc->seek(-(int)pos, SEEK_END); bufPos = (Guint)cc->tell(); } ...
Overflow
0
void CachedFileStream::setPos(Guint pos, int dir) { Guint size; if (dir >= 0) { cc->seek(pos, SEEK_SET); bufPos = pos; } else { cc->seek(0, SEEK_END); size = (Guint)cc->tell(); if (pos > size) pos = (Guint)size; cc->seek(-(int)pos, SEEK_END); bufPos = (Guint)cc->tell(); } ...
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,210
void MemStream::setPos(Guint pos, int dir) { Guint i; if (dir >= 0) { i = pos; } else { i = start + length - pos; } if (i < start) { i = start; } else if (i > start + length) { i = start + length; } bufPtr = buf + i; }
Overflow
0
void MemStream::setPos(Guint pos, int dir) { Guint i; if (dir >= 0) { i = pos; } else { i = start + length - pos; } if (i < start) { i = start; } else if (i > start + length) { i = start + length; } bufPtr = buf + i; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,211
void EmbedStream::setPos(Guint pos, int dir) { error(errInternal, -1, "Internal: called setPos() on EmbedStream"); }
Overflow
0
void EmbedStream::setPos(Guint pos, int dir) { error(errInternal, -1, "Internal: called setPos() on EmbedStream"); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,212
void ImageStream::skipLine() { str->doGetChars(inputLineSize, inputLine); }
Overflow
0
void ImageStream::skipLine() { str->doGetChars(inputLineSize, inputLine); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,213
GBool FlateStream::startBlock() { int blockHdr; int c; int check; if (litCodeTab.codes != fixedLitCodeTab.codes) { gfree(litCodeTab.codes); } litCodeTab.codes = NULL; if (distCodeTab.codes != fixedDistCodeTab.codes) { gfree(distCodeTab.codes); } distCodeTab.codes = NULL; blockHdr = getCode...
Overflow
0
GBool FlateStream::startBlock() { int blockHdr; int c; int check; if (litCodeTab.codes != fixedLitCodeTab.codes) { gfree(litCodeTab.codes); } litCodeTab.codes = NULL; if (distCodeTab.codes != fixedDistCodeTab.codes) { gfree(distCodeTab.codes); } distCodeTab.codes = NULL; blockHdr = getCode...
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,214
void CCITTFaxStream::unfilteredReset() { ccittReset(gTrue); }
Overflow
0
void CCITTFaxStream::unfilteredReset() { ccittReset(gTrue); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,215
void DCTStream::unfilteredReset() { dctReset(gTrue); }
Overflow
0
void DCTStream::unfilteredReset() { dctReset(gTrue); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,216
void FlateStream::unfilteredReset() { flateReset(gTrue); }
Overflow
0
void FlateStream::unfilteredReset() { flateReset(gTrue); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,217
ASCII85Encoder::~ASCII85Encoder() { if (str->isEncoder()) delete str; }
Overflow
0
ASCII85Encoder::~ASCII85Encoder() { if (str->isEncoder()) delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,218
ASCII85Stream::~ASCII85Stream() { delete str; }
Overflow
0
ASCII85Stream::~ASCII85Stream() { delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,219
ASCIIHexEncoder::~ASCIIHexEncoder() { if (str->isEncoder()) { delete str; } }
Overflow
0
ASCIIHexEncoder::~ASCIIHexEncoder() { if (str->isEncoder()) { delete str; } }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,220
ASCIIHexStream::~ASCIIHexStream() { delete str; }
Overflow
0
ASCIIHexStream::~ASCIIHexStream() { delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,221
BaseStream::~BaseStream() { dict.free(); }
Overflow
0
BaseStream::~BaseStream() { dict.free(); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,222
BufStream::~BufStream() { gfree(buf); delete str; }
Overflow
0
BufStream::~BufStream() { gfree(buf); delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,223
CCITTFaxStream::~CCITTFaxStream() { delete str; gfree(refLine); gfree(codingLine); }
Overflow
0
CCITTFaxStream::~CCITTFaxStream() { delete str; gfree(refLine); gfree(codingLine); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,224
CMYKGrayEncoder::~CMYKGrayEncoder() { if (str->isEncoder()) delete str; }
Overflow
0
CMYKGrayEncoder::~CMYKGrayEncoder() { if (str->isEncoder()) delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,225
CachedFileStream::~CachedFileStream() { close(); cc->decRefCnt(); }
Overflow
0
CachedFileStream::~CachedFileStream() { close(); cc->decRefCnt(); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,226
DCTStream::~DCTStream() { close(); delete str; }
Overflow
0
DCTStream::~DCTStream() { close(); delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,227
EOFStream::~EOFStream() { delete str; }
Overflow
0
EOFStream::~EOFStream() { delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,228
EmbedStream::~EmbedStream() { }
Overflow
0
EmbedStream::~EmbedStream() { }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,229
FileOutStream::~FileOutStream () { close (); }
Overflow
0
FileOutStream::~FileOutStream () { close (); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,230
FileStream::~FileStream() { close(); }
Overflow
0
FileStream::~FileStream() { close(); }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,231
FixedLengthEncoder::~FixedLengthEncoder() { if (str->isEncoder()) delete str; }
Overflow
0
FixedLengthEncoder::~FixedLengthEncoder() { if (str->isEncoder()) delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,232
FlateStream::~FlateStream() { if (litCodeTab.codes != fixedLitCodeTab.codes) { gfree(litCodeTab.codes); } if (distCodeTab.codes != fixedDistCodeTab.codes) { gfree(distCodeTab.codes); } if (pred) { delete pred; } delete str; }
Overflow
0
FlateStream::~FlateStream() { if (litCodeTab.codes != fixedLitCodeTab.codes) { gfree(litCodeTab.codes); } if (distCodeTab.codes != fixedDistCodeTab.codes) { gfree(distCodeTab.codes); } if (pred) { delete pred; } delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,233
LZWStream::~LZWStream() { if (pred) { delete pred; } delete str; }
Overflow
0
LZWStream::~LZWStream() { if (pred) { delete pred; } delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,234
MemStream::~MemStream() { if (needFree) { gfree(buf); } }
Overflow
0
MemStream::~MemStream() { if (needFree) { gfree(buf); } }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,235
OutStream::~OutStream () { }
Overflow
0
OutStream::~OutStream () { }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,236
RGBGrayEncoder::~RGBGrayEncoder() { if (str->isEncoder()) delete str; }
Overflow
0
RGBGrayEncoder::~RGBGrayEncoder() { if (str->isEncoder()) delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,237
RunLengthEncoder::~RunLengthEncoder() { if (str->isEncoder()) delete str; }
Overflow
0
RunLengthEncoder::~RunLengthEncoder() { if (str->isEncoder()) delete str; }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,238
Stream::~Stream() { }
Overflow
0
Stream::~Stream() { }
@@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Jeff Muizelaar <jeff@infidigm.net> -// Copyright (C) 2006-2010, 2012 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006-2010, 2012, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2007 Krzysztof Kowalczyk <kkowalczyk@gmail.com>...
CWE-119
null
null
3,239
Splash::Splash(SplashBitmap *bitmapA, GBool vectorAntialiasA, SplashScreenParams *screenParams) { int i; bitmap = bitmapA; vectorAntialias = vectorAntialiasA; inShading = gFalse; state = new SplashState(bitmap->width, bitmap->height, vectorAntialias, screenParams); if (vectorAntialias) { a...
DoS
0
Splash::Splash(SplashBitmap *bitmapA, GBool vectorAntialiasA, SplashScreenParams *screenParams) { int i; bitmap = bitmapA; vectorAntialias = vectorAntialiasA; inShading = gFalse; state = new SplashState(bitmap->width, bitmap->height, vectorAntialias, screenParams); if (vectorAntialias) { a...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,240
Splash::Splash(SplashBitmap *bitmapA, GBool vectorAntialiasA, SplashScreen *screenA) { int i; bitmap = bitmapA; inShading = gFalse; vectorAntialias = vectorAntialiasA; state = new SplashState(bitmap->width, bitmap->height, vectorAntialias, screenA); if (vectorAntialias) { aaBuf = new Splas...
DoS
0
Splash::Splash(SplashBitmap *bitmapA, GBool vectorAntialiasA, SplashScreen *screenA) { int i; bitmap = bitmapA; inShading = gFalse; vectorAntialias = vectorAntialiasA; state = new SplashState(bitmap->width, bitmap->height, vectorAntialias, screenA); if (vectorAntialias) { aaBuf = new Splas...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,241
void Splash::blitImage(SplashBitmap *src, GBool srcAlpha, int xDest, int yDest, SplashClipResult clipRes) { SplashPipe pipe; SplashColor pixel; Guchar *ap; int w, h, x0, y0, x1, y1, x, y; w = src->getWidth(); h = src->getHeight(); if (clipRes == splashClipAllInside) { x0 = 0; y0 = 0; ...
DoS
0
void Splash::blitImage(SplashBitmap *src, GBool srcAlpha, int xDest, int yDest, SplashClipResult clipRes) { SplashPipe pipe; SplashColor pixel; Guchar *ap; int w, h, x0, y0, x1, y1, x, y; w = src->getWidth(); h = src->getHeight(); if (clipRes == splashClipAllInside) { x0 = 0; y0 = 0; ...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,242
void Splash::blitImageClipped(SplashBitmap *src, GBool srcAlpha, int xSrc, int ySrc, int xDest, int yDest, int w, int h) { SplashPipe pipe; SplashColor pixel; Guchar *ap; int x, y; if (vectorAntialias) { pipeInit(&pipe, xDest, yDest, NULL, pixel, (Guchar)splashRound(state->fillAlp...
DoS
0
void Splash::blitImageClipped(SplashBitmap *src, GBool srcAlpha, int xSrc, int ySrc, int xDest, int yDest, int w, int h) { SplashPipe pipe; SplashColor pixel; Guchar *ap; int x, y; if (vectorAntialias) { pipeInit(&pipe, xDest, yDest, NULL, pixel, (Guchar)splashRound(state->fillAlp...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,243
void Splash::clear(SplashColorPtr color, Guchar alpha) { SplashColorPtr row, p; Guchar mono; int x, y; switch (bitmap->mode) { case splashModeMono1: mono = (color[0] & 0x80) ? 0xff : 0x00; if (bitmap->rowSize < 0) { memset(bitmap->data + bitmap->rowSize * (bitmap->height - 1), mono, -bitm...
DoS
0
void Splash::clear(SplashColorPtr color, Guchar alpha) { SplashColorPtr row, p; Guchar mono; int x, y; switch (bitmap->mode) { case splashModeMono1: mono = (color[0] & 0x80) ? 0xff : 0x00; if (bitmap->rowSize < 0) { memset(bitmap->data + bitmap->rowSize * (bitmap->height - 1), mono, -bitm...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,244
static inline Guchar clip255(int x) { return x < 0 ? 0 : x > 255 ? 255 : x; }
DoS
0
static inline Guchar clip255(int x) { return x < 0 ? 0 : x > 255 ? 255 : x; }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,245
SplashError Splash::composite(SplashBitmap *src, int xSrc, int ySrc, int xDest, int yDest, int w, int h, GBool noClip, GBool nonIsolated, GBool knockout, SplashCoord knockoutOpacity) { SplashPipe pipe; SplashColor pixel; Guchar alpha; Guchar *ap; int x, y; if (src->mode != bitmap...
DoS
0
SplashError Splash::composite(SplashBitmap *src, int xSrc, int ySrc, int xDest, int yDest, int w, int h, GBool noClip, GBool nonIsolated, GBool knockout, SplashCoord knockoutOpacity) { SplashPipe pipe; SplashColor pixel; Guchar alpha; Guchar *ap; int x, y; if (src->mode != bitmap...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,246
void Splash::compositeBackground(SplashColorPtr color) { SplashColorPtr p; Guchar *q; Guchar alpha, alpha1, c, color0, color1, color2; #if SPLASH_CMYK Guchar color3; Guchar colorsp[SPOT_NCOMPS+4], cp; #endif int x, y, mask; if (unlikely(bitmap->alpha == NULL)) { error(errInternal, -1, "bitmap->alpha ...
DoS
0
void Splash::compositeBackground(SplashColorPtr color) { SplashColorPtr p; Guchar *q; Guchar alpha, alpha1, c, color0, color1, color2; #if SPLASH_CMYK Guchar color3; Guchar colorsp[SPOT_NCOMPS+4], cp; #endif int x, y, mask; if (unlikely(bitmap->alpha == NULL)) { error(errInternal, -1, "bitmap->alpha ...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,247
inline void Splash::drawAAPixel(SplashPipe *pipe, int x, int y) { #if splashAASize == 4 static int bitCount4[16] = { 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4 }; int w; #else int xx, yy; #endif SplashColorPtr p; int x0, x1, t; if (x < 0 || x >= bitmap->width || y < state->clip->getYMin...
DoS
0
inline void Splash::drawAAPixel(SplashPipe *pipe, int x, int y) { #if splashAASize == 4 static int bitCount4[16] = { 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4 }; int w; #else int xx, yy; #endif SplashColorPtr p; int x0, x1, t; if (x < 0 || x >= bitmap->width || y < state->clip->getYMin...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,248
SplashError Splash::drawImage(SplashImageSource src, void *srcData, SplashColorMode srcMode, GBool srcAlpha, int w, int h, SplashCoord *mat, GBool interpolate, GBool tilingPattern) { GBool ok; SplashBitmap *scaledImg; SplashClipResult clipRes; GBool minorAxisZero; int x0, y0, x1, y1...
DoS
0
SplashError Splash::drawImage(SplashImageSource src, void *srcData, SplashColorMode srcMode, GBool srcAlpha, int w, int h, SplashCoord *mat, GBool interpolate, GBool tilingPattern) { GBool ok; SplashBitmap *scaledImg; SplashClipResult clipRes; GBool minorAxisZero; int x0, y0, x1, y1...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,249
inline void Splash::drawPixel(SplashPipe *pipe, int x, int y, GBool noClip) { if (unlikely(y < 0)) return; if (noClip || state->clip->test(x, y)) { pipeSetXY(pipe, x, y); (this->*pipe->run)(pipe); updateModX(x); updateModY(y); } }
DoS
0
inline void Splash::drawPixel(SplashPipe *pipe, int x, int y, GBool noClip) { if (unlikely(y < 0)) return; if (noClip || state->clip->test(x, y)) { pipeSetXY(pipe, x, y); (this->*pipe->run)(pipe); updateModX(x); updateModY(y); } }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,250
static void expandRow(Guchar *srcBuf, Guchar *dstBuf, int srcWidth, int scaledWidth, int nComps) { double xStep = (double)srcWidth/scaledWidth; double xSrc = 0.0; double xFrac, xInt; int p; for (int i = 0; i < nComps; i++) srcBuf[srcWidth*nComps + i] = srcBuf[(srcWidth-1)*nComps + i]; for (int x = 0; ...
DoS
0
static void expandRow(Guchar *srcBuf, Guchar *dstBuf, int srcWidth, int scaledWidth, int nComps) { double xStep = (double)srcWidth/scaledWidth; double xSrc = 0.0; double xFrac, xInt; int p; for (int i = 0; i < nComps; i++) srcBuf[srcWidth*nComps + i] = srcBuf[(srcWidth-1)*nComps + i]; for (int x = 0; ...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,251
void Splash::fillGlyph2(int x0, int y0, SplashGlyphBitmap *glyph, GBool noClip) { SplashPipe pipe; int alpha0; Guchar alpha; Guchar *p; int x1, y1, xx, xx1, yy; p = glyph->data; int xStart = x0 - glyph->x; int yStart = y0 - glyph->y; int xxLimit = glyph->w; int yyLimit = glyph->h; int xShift = 0;...
DoS
0
void Splash::fillGlyph2(int x0, int y0, SplashGlyphBitmap *glyph, GBool noClip) { SplashPipe pipe; int alpha0; Guchar alpha; Guchar *p; int x1, y1, xx, xx1, yy; p = glyph->data; int xStart = x0 - glyph->x; int yStart = y0 - glyph->y; int xxLimit = glyph->w; int yyLimit = glyph->h; int xShift = 0;...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,252
SplashError Splash::fillWithPattern(SplashPath *path, GBool eo, SplashPattern *pattern, SplashCoord alpha) { SplashPipe pipe; SplashXPath *xPath; SplashXPathScanner *scanner; int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y; SplashClipResult clipRes, clipRes2; if (path->length == 0) { return s...
DoS
0
SplashError Splash::fillWithPattern(SplashPath *path, GBool eo, SplashPattern *pattern, SplashCoord alpha) { SplashPipe pipe; SplashXPath *xPath; SplashXPathScanner *scanner; int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y; SplashClipResult clipRes, clipRes2; if (path->length == 0) { return s...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,253
void Splash::flattenCurve(SplashCoord x0, SplashCoord y0, SplashCoord x1, SplashCoord y1, SplashCoord x2, SplashCoord y2, SplashCoord x3, SplashCoord y3, SplashCoord *matrix, SplashCoord flatness2, SplashPath *fPath) { SplashCoord cx[splashMaxCurveSplits + 1][3]; SplashCoord cy[splashMaxCur...
DoS
0
void Splash::flattenCurve(SplashCoord x0, SplashCoord y0, SplashCoord x1, SplashCoord y1, SplashCoord x2, SplashCoord y2, SplashCoord x3, SplashCoord y3, SplashCoord *matrix, SplashCoord flatness2, SplashPath *fPath) { SplashCoord cx[splashMaxCurveSplits + 1][3]; SplashCoord cy[splashMaxCur...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,254
SplashPath *Splash::flattenPath(SplashPath *path, SplashCoord *matrix, SplashCoord flatness) { SplashPath *fPath; SplashCoord flatness2; Guchar flag; int i; fPath = new SplashPath(); #if USE_FIXEDPOINT flatness2 = flatness; #else flatness2 = flatness * flatness; #endif i = 0; while (i < path->len...
DoS
0
SplashPath *Splash::flattenPath(SplashPath *path, SplashCoord *matrix, SplashCoord flatness) { SplashPath *fPath; SplashCoord flatness2; Guchar flag; int i; fPath = new SplashPath(); #if USE_FIXEDPOINT flatness2 = flatness; #else flatness2 = flatness * flatness; #endif i = 0; while (i < path->len...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,255
GBool Splash::getStrokeAdjust() { return state->strokeAdjust; }
DoS
0
GBool Splash::getStrokeAdjust() { return state->strokeAdjust; }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,256
GBool Splash::gouraudTriangleShadedFill(SplashGouraudColor *shading) { double xdbl[3] = {0., 0., 0.}; double ydbl[3] = {0., 0., 0.}; int x[3] = {0, 0, 0}; int y[3] = {0, 0, 0}; double xt=0., xa=0., yt=0.; double ca=0., ct=0.; double scanLimitMapL[2] = {0., 0.}; double scanLimitMapR[2] = {0., 0.};...
DoS
0
GBool Splash::gouraudTriangleShadedFill(SplashGouraudColor *shading) { double xdbl[3] = {0., 0., 0.}; double ydbl[3] = {0., 0., 0.}; int x[3] = {0, 0, 0}; int y[3] = {0, 0, 0}; double xt=0., xa=0., yt=0.; double ca=0., ct=0.; double scanLimitMapL[2] = {0., 0.}; double scanLimitMapR[2] = {0., 0.};...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,257
static inline int imgCoordMungeLower(SplashCoord x) { return splashFloor(x); }
DoS
0
static inline int imgCoordMungeLower(SplashCoord x) { return splashFloor(x); }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,258
static inline int imgCoordMungeLowerC(SplashCoord x, GBool glyphMode) { return glyphMode ? (splashCeil(x + 0.5) - 1) : splashFloor(x); }
DoS
0
static inline int imgCoordMungeLowerC(SplashCoord x, GBool glyphMode) { return glyphMode ? (splashCeil(x + 0.5) - 1) : splashFloor(x); }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,259
static inline int imgCoordMungeUpper(SplashCoord x) { return splashFloor(x) + 1; }
DoS
0
static inline int imgCoordMungeUpper(SplashCoord x) { return splashFloor(x) + 1; }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,260
static inline int imgCoordMungeUpperC(SplashCoord x, GBool glyphMode) { return glyphMode ? (splashCeil(x + 0.5) - 1) : (splashFloor(x) + 1); }
DoS
0
static inline int imgCoordMungeUpperC(SplashCoord x, GBool glyphMode) { return glyphMode ? (splashCeil(x + 0.5) - 1) : (splashFloor(x) + 1); }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,261
static GBool isImageInterpolationRequired(int srcWidth, int srcHeight, int scaledWidth, int scaledHeight, GBool interpolate) { if (interpolate) return gTrue; /* When scale factor is >= 400% we don't interpolate. See bugs #25268...
DoS
0
static GBool isImageInterpolationRequired(int srcWidth, int srcHeight, int scaledWidth, int scaledHeight, GBool interpolate) { if (interpolate) return gTrue; /* When scale factor is >= 400% we don't interpolate. See bugs #25268...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,262
SplashPath *Splash::makeDashedPath(SplashPath *path) { SplashPath *dPath; SplashCoord lineDashTotal; SplashCoord lineDashStartPhase, lineDashDist, segLen; SplashCoord x0, y0, x1, y1, xa, ya; GBool lineDashStartOn, lineDashOn, newPath; int lineDashStartIdx, lineDashIdx; int i, j, k; lineDashTotal = 0; ...
DoS
0
SplashPath *Splash::makeDashedPath(SplashPath *path) { SplashPath *dPath; SplashCoord lineDashTotal; SplashCoord lineDashStartPhase, lineDashDist, segLen; SplashCoord x0, y0, x1, y1, xa, ya; GBool lineDashStartOn, lineDashOn, newPath; int lineDashStartIdx, lineDashIdx; int i, j, k; lineDashTotal = 0; ...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,263
SplashPath *Splash::makeStrokePath(SplashPath *path, SplashCoord w, GBool flatten) { SplashPath *pathIn, *dashPath, *pathOut; SplashCoord d, dx, dy, wdx, wdy, dxNext, dyNext, wdxNext, wdyNext; SplashCoord crossprod, dotprod, miter, m; GBool first, last, closed; int subpathStart0, subpathStart1, seg, i0,...
DoS
0
SplashPath *Splash::makeStrokePath(SplashPath *path, SplashCoord w, GBool flatten) { SplashPath *pathIn, *dashPath, *pathOut; SplashCoord d, dx, dy, wdx, wdy, dxNext, dyNext, wdxNext, wdyNext; SplashCoord crossprod, dotprod, miter, m; GBool first, last, closed; int subpathStart0, subpathStart1, seg, i0,...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,264
inline void Splash::pipeIncX(SplashPipe *pipe) { ++pipe->x; if (state->softMask) { ++pipe->softMaskPtr; } switch (bitmap->mode) { case splashModeMono1: if (!(pipe->destColorMask >>= 1)) { pipe->destColorMask = 0x80; ++pipe->destColorPtr; } break; case splashModeMono8: ++pipe-...
DoS
0
inline void Splash::pipeIncX(SplashPipe *pipe) { ++pipe->x; if (state->softMask) { ++pipe->softMaskPtr; } switch (bitmap->mode) { case splashModeMono1: if (!(pipe->destColorMask >>= 1)) { pipe->destColorMask = 0x80; ++pipe->destColorPtr; } break; case splashModeMono8: ++pipe-...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,265
inline void Splash::pipeInit(SplashPipe *pipe, int x, int y, SplashPattern *pattern, SplashColorPtr cSrc, Guchar aInput, GBool usesShape, GBool nonIsolatedGroup, GBool knockout, Guchar knockoutOpacity) { pipeSetXY(pipe, x, y); pipe->pattern = NULL; if (pattern) { if (pattern->...
DoS
0
inline void Splash::pipeInit(SplashPipe *pipe, int x, int y, SplashPattern *pattern, SplashColorPtr cSrc, Guchar aInput, GBool usesShape, GBool nonIsolatedGroup, GBool knockout, Guchar knockoutOpacity) { pipeSetXY(pipe, x, y); pipe->pattern = NULL; if (pattern) { if (pattern->...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,266
void Splash::pipeRun(SplashPipe *pipe) { Guchar aSrc, aDest, alphaI, alphaIm1, alpha0, aResult; SplashColor cSrcNonIso, cDest, cBlend; SplashColorPtr cSrc; Guchar cResult0, cResult1, cResult2, cResult3; int t; #if SPLASH_CMYK int cp, mask; Guchar cResult[SPOT_NCOMPS+4]; #endif if (pipe->pattern) { ...
DoS
0
void Splash::pipeRun(SplashPipe *pipe) { Guchar aSrc, aDest, alphaI, alphaIm1, alpha0, aResult; SplashColor cSrcNonIso, cDest, cBlend; SplashColorPtr cSrc; Guchar cResult0, cResult1, cResult2, cResult3; int t; #if SPLASH_CMYK int cp, mask; Guchar cResult[SPOT_NCOMPS+4]; #endif if (pipe->pattern) { ...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,267
void Splash::pipeRunAABGR8(SplashPipe *pipe) { Guchar aSrc, aDest, alpha2, aResult; SplashColor cDest; Guchar cResult0, cResult1, cResult2; cDest[0] = pipe->destColorPtr[2]; cDest[1] = pipe->destColorPtr[1]; cDest[2] = pipe->destColorPtr[0]; aDest = *pipe->destAlphaPtr; aSrc = div255(pipe->aInput * pi...
DoS
0
void Splash::pipeRunAABGR8(SplashPipe *pipe) { Guchar aSrc, aDest, alpha2, aResult; SplashColor cDest; Guchar cResult0, cResult1, cResult2; cDest[0] = pipe->destColorPtr[2]; cDest[1] = pipe->destColorPtr[1]; cDest[2] = pipe->destColorPtr[0]; aDest = *pipe->destAlphaPtr; aSrc = div255(pipe->aInput * pi...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,268
void Splash::pipeRunAACMYK8(SplashPipe *pipe) { Guchar aSrc, aDest, alpha2, aResult; SplashColor cDest; Guchar cResult0, cResult1, cResult2, cResult3; cDest[0] = pipe->destColorPtr[0]; cDest[1] = pipe->destColorPtr[1]; cDest[2] = pipe->destColorPtr[2]; cDest[3] = pipe->destColorPtr[3]; aDest = *pipe->d...
DoS
0
void Splash::pipeRunAACMYK8(SplashPipe *pipe) { Guchar aSrc, aDest, alpha2, aResult; SplashColor cDest; Guchar cResult0, cResult1, cResult2, cResult3; cDest[0] = pipe->destColorPtr[0]; cDest[1] = pipe->destColorPtr[1]; cDest[2] = pipe->destColorPtr[2]; cDest[3] = pipe->destColorPtr[3]; aDest = *pipe->d...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,269
void Splash::pipeRunAADeviceN8(SplashPipe *pipe) { Guchar aSrc, aDest, alpha2, aResult; SplashColor cDest; Guchar cResult[SPOT_NCOMPS+4]; int cp, mask; for (cp=0; cp < SPOT_NCOMPS+4; cp++) cDest[cp] = pipe->destColorPtr[cp]; aDest = *pipe->destAlphaPtr; aSrc = div255(pipe->aInput * pipe->shape); ...
DoS
0
void Splash::pipeRunAADeviceN8(SplashPipe *pipe) { Guchar aSrc, aDest, alpha2, aResult; SplashColor cDest; Guchar cResult[SPOT_NCOMPS+4]; int cp, mask; for (cp=0; cp < SPOT_NCOMPS+4; cp++) cDest[cp] = pipe->destColorPtr[cp]; aDest = *pipe->destAlphaPtr; aSrc = div255(pipe->aInput * pipe->shape); ...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,270
void Splash::pipeRunAAMono1(SplashPipe *pipe) { Guchar aSrc; SplashColor cDest; Guchar cResult0; cDest[0] = (*pipe->destColorPtr & pipe->destColorMask) ? 0xff : 0x00; aSrc = div255(pipe->aInput * pipe->shape); cResult0 = state->grayTransfer[(Guchar)div255((0xff - aSrc) * cDest[0] + aSrc * pipe->cSr...
DoS
0
void Splash::pipeRunAAMono1(SplashPipe *pipe) { Guchar aSrc; SplashColor cDest; Guchar cResult0; cDest[0] = (*pipe->destColorPtr & pipe->destColorMask) ? 0xff : 0x00; aSrc = div255(pipe->aInput * pipe->shape); cResult0 = state->grayTransfer[(Guchar)div255((0xff - aSrc) * cDest[0] + aSrc * pipe->cSr...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,271
void Splash::pipeRunAAXBGR8(SplashPipe *pipe) { Guchar aSrc, aDest, alpha2, aResult; SplashColor cDest; Guchar cResult0, cResult1, cResult2; cDest[0] = pipe->destColorPtr[2]; cDest[1] = pipe->destColorPtr[1]; cDest[2] = pipe->destColorPtr[0]; aDest = *pipe->destAlphaPtr; aSrc = div255(pipe->aInput * p...
DoS
0
void Splash::pipeRunAAXBGR8(SplashPipe *pipe) { Guchar aSrc, aDest, alpha2, aResult; SplashColor cDest; Guchar cResult0, cResult1, cResult2; cDest[0] = pipe->destColorPtr[2]; cDest[1] = pipe->destColorPtr[1]; cDest[2] = pipe->destColorPtr[0]; aDest = *pipe->destAlphaPtr; aSrc = div255(pipe->aInput * p...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,272
void Splash::pipeRunSimpleBGR8(SplashPipe *pipe) { *pipe->destColorPtr++ = state->rgbTransferB[pipe->cSrc[2]]; *pipe->destColorPtr++ = state->rgbTransferG[pipe->cSrc[1]]; *pipe->destColorPtr++ = state->rgbTransferR[pipe->cSrc[0]]; *pipe->destAlphaPtr++ = 255; ++pipe->x; }
DoS
0
void Splash::pipeRunSimpleBGR8(SplashPipe *pipe) { *pipe->destColorPtr++ = state->rgbTransferB[pipe->cSrc[2]]; *pipe->destColorPtr++ = state->rgbTransferG[pipe->cSrc[1]]; *pipe->destColorPtr++ = state->rgbTransferR[pipe->cSrc[0]]; *pipe->destAlphaPtr++ = 255; ++pipe->x; }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,273
void Splash::pipeRunSimpleCMYK8(SplashPipe *pipe) { if (state->overprintMask & 1) { pipe->destColorPtr[0] = (state->overprintAdditive) ? std::min<int>(pipe->destColorPtr[0] + state->cmykTransferC[pipe->cSrc[0]], 255) : state->cmykTransferC[pipe->cSrc[0]]; } if (state->overprintMas...
DoS
0
void Splash::pipeRunSimpleCMYK8(SplashPipe *pipe) { if (state->overprintMask & 1) { pipe->destColorPtr[0] = (state->overprintAdditive) ? std::min<int>(pipe->destColorPtr[0] + state->cmykTransferC[pipe->cSrc[0]], 255) : state->cmykTransferC[pipe->cSrc[0]]; } if (state->overprintMas...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,274
void Splash::pipeRunSimpleDeviceN8(SplashPipe *pipe) { int mask = 1; for (int cp = 0; cp < SPOT_NCOMPS+4; cp++) { if (state->overprintMask & mask) { pipe->destColorPtr[cp] = state->deviceNTransfer[cp][pipe->cSrc[cp]]; } mask <<=1; } pipe->destColorPtr += (SPOT_NCOMPS+4); *pipe->destAlphaPtr+...
DoS
0
void Splash::pipeRunSimpleDeviceN8(SplashPipe *pipe) { int mask = 1; for (int cp = 0; cp < SPOT_NCOMPS+4; cp++) { if (state->overprintMask & mask) { pipe->destColorPtr[cp] = state->deviceNTransfer[cp][pipe->cSrc[cp]]; } mask <<=1; } pipe->destColorPtr += (SPOT_NCOMPS+4); *pipe->destAlphaPtr+...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,275
void Splash::pipeRunSimpleMono1(SplashPipe *pipe) { Guchar cResult0; cResult0 = state->grayTransfer[pipe->cSrc[0]]; if (state->screen->test(pipe->x, pipe->y, cResult0)) { *pipe->destColorPtr |= pipe->destColorMask; } else { *pipe->destColorPtr &= ~pipe->destColorMask; } if (!(pipe->destColorMask >>...
DoS
0
void Splash::pipeRunSimpleMono1(SplashPipe *pipe) { Guchar cResult0; cResult0 = state->grayTransfer[pipe->cSrc[0]]; if (state->screen->test(pipe->x, pipe->y, cResult0)) { *pipe->destColorPtr |= pipe->destColorMask; } else { *pipe->destColorPtr &= ~pipe->destColorMask; } if (!(pipe->destColorMask >>...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,276
void Splash::pipeRunSimpleMono8(SplashPipe *pipe) { *pipe->destColorPtr++ = state->grayTransfer[pipe->cSrc[0]]; *pipe->destAlphaPtr++ = 255; ++pipe->x; }
DoS
0
void Splash::pipeRunSimpleMono8(SplashPipe *pipe) { *pipe->destColorPtr++ = state->grayTransfer[pipe->cSrc[0]]; *pipe->destAlphaPtr++ = 255; ++pipe->x; }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,277
inline void Splash::pipeSetXY(SplashPipe *pipe, int x, int y) { pipe->x = x; pipe->y = y; if (state->softMask) { pipe->softMaskPtr = &state->softMask->data[y * state->softMask->rowSize + x]; } switch (bitmap->mode) { case splashModeMono1: pipe->destColorPtr = &bitmap->data[y * bitmap->rowSiz...
DoS
0
inline void Splash::pipeSetXY(SplashPipe *pipe, int x, int y) { pipe->x = x; pipe->y = y; if (state->softMask) { pipe->softMaskPtr = &state->softMask->data[y * state->softMask->rowSize + x]; } switch (bitmap->mode) { case splashModeMono1: pipe->destColorPtr = &bitmap->data[y * bitmap->rowSiz...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,278
SplashBitmap *Splash::scaleImage(SplashImageSource src, void *srcData, SplashColorMode srcMode, int nComps, GBool srcAlpha, int srcWidth, int srcHeight, int scaledWidth, int scaledHeight, GBool interpolate) { SplashBitmap *dest; dest = new SplashBitmap(scaledWidth, scaledHeight, 1, srcMode, srcAlpha...
DoS
0
SplashBitmap *Splash::scaleImage(SplashImageSource src, void *srcData, SplashColorMode srcMode, int nComps, GBool srcAlpha, int srcWidth, int srcHeight, int scaledWidth, int scaledHeight, GBool interpolate) { SplashBitmap *dest; dest = new SplashBitmap(scaledWidth, scaledHeight, 1, srcMode, srcAlpha...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,279
SplashBitmap *Splash::scaleMask(SplashImageMaskSource src, void *srcData, int srcWidth, int srcHeight, int scaledWidth, int scaledHeight) { SplashBitmap *dest; dest = new SplashBitmap(scaledWidth, scaledHeight, 1, splashModeMono8, gFalse); if (scaledHeight < srcHeight) { if (scaledWidth < srcWid...
DoS
0
SplashBitmap *Splash::scaleMask(SplashImageMaskSource src, void *srcData, int srcWidth, int srcHeight, int scaledWidth, int scaledHeight) { SplashBitmap *dest; dest = new SplashBitmap(scaledWidth, scaledHeight, 1, splashModeMono8, gFalse); if (scaledHeight < srcHeight) { if (scaledWidth < srcWid...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,280
void Splash::scaleMaskYdXd(SplashImageMaskSource src, void *srcData, int srcWidth, int srcHeight, int scaledWidth, int scaledHeight, SplashBitmap *dest) { Guchar *lineBuf; Guint *pixBuf; Guint pix; Guchar *destPtr; int yp, yq, xp, xq, yt, y, yStep, xt, x, xStep, xx, d, d0, d1; int i, j; ...
DoS
0
void Splash::scaleMaskYdXd(SplashImageMaskSource src, void *srcData, int srcWidth, int srcHeight, int scaledWidth, int scaledHeight, SplashBitmap *dest) { Guchar *lineBuf; Guint *pixBuf; Guint pix; Guchar *destPtr; int yp, yq, xp, xq, yt, y, yStep, xt, x, xStep, xx, d, d0, d1; int i, j; ...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,281
void Splash::scaleMaskYuXd(SplashImageMaskSource src, void *srcData, int srcWidth, int srcHeight, int scaledWidth, int scaledHeight, SplashBitmap *dest) { Guchar *lineBuf; Guint pix; Guchar *destPtr0, *destPtr; int yp, yq, xp, xq, yt, y, yStep, xt, x, xStep, xx, d, d0, d1; int i; yp = sca...
DoS
0
void Splash::scaleMaskYuXd(SplashImageMaskSource src, void *srcData, int srcWidth, int srcHeight, int scaledWidth, int scaledHeight, SplashBitmap *dest) { Guchar *lineBuf; Guint pix; Guchar *destPtr0, *destPtr; int yp, yq, xp, xq, yt, y, yStep, xt, x, xStep, xx, d, d0, d1; int i; yp = sca...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,282
void Splash::scaleMaskYuXu(SplashImageMaskSource src, void *srcData, int srcWidth, int srcHeight, int scaledWidth, int scaledHeight, SplashBitmap *dest) { Guchar *lineBuf; Guint pix; Guchar *destPtr0, *destPtr; int yp, yq, xp, xq, yt, y, yStep, xt, x, xStep, xx; int i, j; destPtr0 = dest-...
DoS
0
void Splash::scaleMaskYuXu(SplashImageMaskSource src, void *srcData, int srcWidth, int srcHeight, int scaledWidth, int scaledHeight, SplashBitmap *dest) { Guchar *lineBuf; Guint pix; Guchar *destPtr0, *destPtr; int yp, yq, xp, xq, yt, y, yStep, xt, x, xStep, xx; int i, j; destPtr0 = dest-...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,283
void Splash::setFillOverprint(GBool fop) { state->fillOverprint = fop; }
DoS
0
void Splash::setFillOverprint(GBool fop) { state->fillOverprint = fop; }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,284
void Splash::setOverprintMask(Guint overprintMask, GBool additive) { state->overprintMask = overprintMask; state->overprintAdditive = additive; }
DoS
0
void Splash::setOverprintMask(Guint overprintMask, GBool additive) { state->overprintMask = overprintMask; state->overprintAdditive = additive; }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,285
void Splash::setOverprintMode(int opm) { state->overprintMode = opm; }
DoS
0
void Splash::setOverprintMode(int opm) { state->overprintMode = opm; }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,286
void Splash::setStrokeOverprint(GBool gop) { state->strokeOverprint = gop; }
DoS
0
void Splash::setStrokeOverprint(GBool gop) { state->strokeOverprint = gop; }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,287
void Splash::setTransfer(Guchar *red, Guchar *green, Guchar *blue, Guchar *gray) { state->setTransfer(red, green, blue, gray); }
DoS
0
void Splash::setTransfer(Guchar *red, Guchar *green, Guchar *blue, Guchar *gray) { state->setTransfer(red, green, blue, gray); }
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,288
SplashError Splash::shadedFill(SplashPath *path, GBool hasBBox, SplashPattern *pattern) { SplashPipe pipe; SplashXPath *xPath; SplashXPathScanner *scanner; int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y; SplashClipResult clipRes; if (vectorAntialias && aaBuf == NULL) { // should n...
DoS
0
SplashError Splash::shadedFill(SplashPath *path, GBool hasBBox, SplashPattern *pattern) { SplashPipe pipe; SplashXPath *xPath; SplashXPathScanner *scanner; int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y; SplashClipResult clipRes; if (vectorAntialias && aaBuf == NULL) { // should n...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,289
void Splash::strokeNarrow(SplashPath *path) { SplashPipe pipe; SplashXPath *xPath; SplashXPathSeg *seg; int x0, x1, y0, y1, xa, xb, y; SplashCoord dxdy; SplashClipResult clipRes; int nClipRes[3]; int i; nClipRes[0] = nClipRes[1] = nClipRes[2] = 0; xPath = new SplashXPath(path, state->matrix, state...
DoS
0
void Splash::strokeNarrow(SplashPath *path) { SplashPipe pipe; SplashXPath *xPath; SplashXPathSeg *seg; int x0, x1, y0, y1, xa, xb, y; SplashCoord dxdy; SplashClipResult clipRes; int nClipRes[3]; int i; nClipRes[0] = nClipRes[1] = nClipRes[2] = 0; xPath = new SplashXPath(path, state->matrix, state...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,290
void Splash::vertFlipImage(SplashBitmap *img, int width, int height, int nComps) { Guchar *lineBuf; Guchar *p0, *p1; int w; w = width * nComps; lineBuf = (Guchar *)gmalloc(w); for (p0 = img->data, p1 = img->data + (height - 1) * w; p0 < p1; p0 += w, p1 -= w) { memcpy(lineBuf, p0, w)...
DoS
0
void Splash::vertFlipImage(SplashBitmap *img, int width, int height, int nComps) { Guchar *lineBuf; Guchar *p0, *p1; int w; w = width * nComps; lineBuf = (Guchar *)gmalloc(w); for (p0 = img->data, p1 = img->data + (height - 1) * w; p0 < p1; p0 += w, p1 -= w) { memcpy(lineBuf, p0, w)...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,291
SplashError Splash::xorFill(SplashPath *path, GBool eo) { SplashPipe pipe; SplashXPath *xPath; SplashXPathScanner *scanner; int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y; SplashClipResult clipRes, clipRes2; SplashBlendFunc origBlendFunc; if (path->length == 0) { return splashErrEmptyPath; } xPath = n...
DoS
0
SplashError Splash::xorFill(SplashPath *path, GBool eo) { SplashPipe pipe; SplashXPath *xPath; SplashXPathScanner *scanner; int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y; SplashClipResult clipRes, clipRes2; SplashBlendFunc origBlendFunc; if (path->length == 0) { return splashErrEmptyPath; } xPath = n...
@@ -2955,7 +2955,7 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); if (scaledMask->data == NULL) { - error(errInternal, -1, "scaledMask->data is NULL in Splash::scaleMaskYuXu"); + erro...
null
null
null
3,292
static inline int imgCoordMungeUpper(SplashCoord x) { return splashCeil(x + 0.5) - 1; }
DoS
0
static inline int imgCoordMungeUpper(SplashCoord x) { return splashCeil(x + 0.5) - 1; }
@@ -2954,6 +2954,11 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, // scale the input image scaledMask = scaleMask(src, srcData, srcWidth, srcHeight, scaledWidth, scaledHeight); + if (scaledMask->data == NULL) { + error(errInternal, -1, "scaledMask->data is NULL in Splas...
null
null
null
3,293
ExponentialFunction::ExponentialFunction(Object *funcObj, Dict *dict) { Object obj1, obj2; int i; ok = gFalse; if (!init(dict)) { goto err1; } if (m != 1) { error(errSyntaxError, -1, "Exponential function with more than one input"); goto err1; } if (dict->lookup("C0", &obj1)->isArray()) {...
DoS Exec Code Overflow
0
ExponentialFunction::ExponentialFunction(Object *funcObj, Dict *dict) { Object obj1, obj2; int i; ok = gFalse; if (!init(dict)) { goto err1; } if (m != 1) { error(errSyntaxError, -1, "Exponential function with more than one input"); goto err1; } if (dict->lookup("C0", &obj1)->isArray()) {...
@@ -13,7 +13,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2006, 2008-2010 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006, 2008-2010, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2006 Jeff Muizelaar <jeff@infidi...
CWE-119
null
null
3,294
Function::Function() { }
DoS Exec Code Overflow
0
Function::Function() { }
@@ -13,7 +13,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2006, 2008-2010 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006, 2008-2010, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2006 Jeff Muizelaar <jeff@infidi...
CWE-119
null
null
3,295
Function::Function(const Function *func) { m = func->m; n = func->n; memcpy(domain, func->domain, funcMaxInputs * 2 * sizeof(double)); memcpy(range, func->range, funcMaxOutputs * 2 * sizeof(double)); hasRange = func->hasRange; }
DoS Exec Code Overflow
0
Function::Function(const Function *func) { m = func->m; n = func->n; memcpy(domain, func->domain, funcMaxInputs * 2 * sizeof(double)); memcpy(range, func->range, funcMaxOutputs * 2 * sizeof(double)); hasRange = func->hasRange; }
@@ -13,7 +13,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2006, 2008-2010 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006, 2008-2010, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2006 Jeff Muizelaar <jeff@infidi...
CWE-119
null
null
3,296
IdentityFunction::IdentityFunction() { int i; m = funcMaxInputs; n = funcMaxOutputs; for (i = 0; i < funcMaxInputs; ++i) { domain[i][0] = 0; domain[i][1] = 1; } hasRange = gFalse; }
DoS Exec Code Overflow
0
IdentityFunction::IdentityFunction() { int i; m = funcMaxInputs; n = funcMaxOutputs; for (i = 0; i < funcMaxInputs; ++i) { domain[i][0] = 0; domain[i][1] = 1; } hasRange = gFalse; }
@@ -13,7 +13,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2006, 2008-2010 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006, 2008-2010, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2006 Jeff Muizelaar <jeff@infidi...
CWE-119
null
null
3,297
PSStack() {sp = psStackSize; }
DoS Exec Code Overflow
0
PSStack() {sp = psStackSize; }
@@ -13,7 +13,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2006, 2008-2010 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2006, 2008-2010, 2013 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2006 Jeff Muizelaar <jeff@infidi...
CWE-119
null
null
3,298
int CCITTFaxStream::lookChar() { int code1, code2, code3; int b1i, blackPixels, i, bits; GBool gotEOL; if (buf != EOF) { return buf; } if (outputBits == 0) { if (eof) { return EOF; } err = gFalse; if (nextLine2D) { for (i = 0; i < columns && codingLine[i] < columns; ++i)...
DoS Exec Code Overflow
0
int CCITTFaxStream::lookChar() { int code1, code2, code3; int b1i, blackPixels, i, bits; GBool gotEOL; if (buf != EOF) { return buf; } if (outputBits == 0) { if (eof) { return EOF; } err = gFalse; if (nextLine2D) { for (i = 0; i < columns && codingLine[i] < columns; ++i)...
@@ -2387,7 +2387,8 @@ GBool CCITTFaxStream::isBinary(GBool last) { // clip [-256,511] --> [0,255] #define dctClipOffset 256 -static Guchar dctClip[768]; +#define dctClipLength 768 +static Guchar dctClip[dctClipLength]; static int dctClipInit = 0; // zig zag decode map @@ -3343,7 +3344,12 @@ void DCTStream::tran...
CWE-119
null
null
3,299
void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, int srcWidth, int srcHeight, SplashCoord *mat, GBool glyphMode) { SplashBitmap *scaledMask; SplashClipResult clipRes, clipRes2; SplashPipe pipe; int scaledWidth, scaledHeight, t0, t1; SplashCoord r00, r01, r10, r11, ...
DoS Exec Code Overflow
0
void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData, int srcWidth, int srcHeight, SplashCoord *mat, GBool glyphMode) { SplashBitmap *scaledMask; SplashClipResult clipRes, clipRes2; SplashPipe pipe; int scaledWidth, scaledHeight, t0, t1; SplashCoord r00, r01, r10, r11, ...
@@ -2252,11 +2252,14 @@ SplashPath *Splash::makeDashedPath(SplashPath *path) { lineDashStartOn = gTrue; lineDashStartIdx = 0; if (lineDashStartPhase > 0) { - while (lineDashStartPhase >= state->lineDash[lineDashStartIdx]) { + while (lineDashStartIdx < state->lineDashLength && lineDashStartPhase >= state-...
CWE-119
null
null