Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
gdk-pixbuf.1775
gdk-pixbuf-bsc960155-divide-by-zero.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gdk-pixbuf-bsc960155-divide-by-zero.patch of Package gdk-pixbuf.1775
From 74c418ba2e41ab9e2287420378a6192788b1fab6 Mon Sep 17 00:00:00 2001 From: Sarita Rawat <sarita.rawat@samsung.com> Date: Fri, 5 Jun 2015 06:56:00 +0000 Subject: [PATCH] Avoid a possible divide-by-zero Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=750440 --- gdk-pixbuf/gdk-pixbuf-loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index 65845ed..668b703 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -330,7 +330,7 @@ gdk_pixbuf_loader_prepare (GdkPixbuf *pixbuf, else anim = gdk_pixbuf_non_anim_new (pixbuf); - if (priv->needs_scale) { + if (priv->needs_scale && width != 0 && height != 0) { priv->animation = GDK_PIXBUF_ANIMATION (_gdk_pixbuf_scaled_anim_new (anim, (double) priv->width / width, (double) priv->height / height, -- 2.6.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor