splash/SplashPath.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit df818b383cf4fa402b89f7b2dd0f958a749a4790 Author: Albert Astals Cid <[email protected]> Date: Thu Aug 30 20:46:20 2018 +0200 SplashPath: Fix overflow check What signals overflow is size being 0 not length being 0 diff --git a/splash/SplashPath.cc b/splash/SplashPath.cc index d77fd03b..20acd40b 100644 --- a/splash/SplashPath.cc +++ b/splash/SplashPath.cc @@ -116,7 +116,7 @@ SplashError SplashPath::moveTo(SplashCoord x, SplashCoord y) { return splashErrBogusPath; } grow(1); - if (unlikely(length == 0)) + if (unlikely(size == 0)) return splashErrBogusPath; pts[length].x = x; pts[length].y = y; _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
