[poppler] poppler/splash: Splash.cc,1.1.1.1,1.2
Albert Astals Cid
aacid at freedesktop.org
Fri Jul 22 20:33:57 EST 2005
Update of /cvs/poppler/poppler/splash
In directory gabe:/tmp/cvs-serv18592/splash
Modified Files:
Splash.cc
Log Message:
Fix bugs #3728 and #3750
Index: Splash.cc
===================================================================
RCS file: /cvs/poppler/poppler/splash/Splash.cc,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- Splash.cc 3 Mar 2005 19:45:59 -0000 1.1.1.1
+++ Splash.cc 22 Jul 2005 10:33:54 -0000 1.2
@@ -254,6 +254,11 @@
return splashErrEmptyPath;
}
xPath = new SplashXPath(path, state->flatness, gFalse);
+ if (xPath->segs == NULL)
+ {
+ delete xPath;
+ return splashErrEmptyPath;
+ }
if (state->lineDashLength > 0) {
xPath2 = makeDashedPath(xPath);
delete xPath;
@@ -647,6 +652,11 @@
}
xPath = new SplashXPath(path, state->flatness, gTrue);
xPath->sort();
+ if (xPath->segs == NULL)
+ {
+ delete xPath;
+ return splashErrEmptyPath;
+ }
scanner = new SplashXPathScanner(xPath, eo);
// get the min and max x and y values
More information about the poppler
mailing list