Author: post
Date: 2012-03-29 08:18:26 +0200 (Thu, 29 Mar 2012)
New Revision: 4173
Modified:
trunk/librawstudio/rs-filter.c
Log:
Add safety check on filter response.
Modified: trunk/librawstudio/rs-filter.c
===================================================================
--- trunk/librawstudio/rs-filter.c 2012-03-28 15:09:13 UTC (rev 4172)
+++ trunk/librawstudio/rs-filter.c 2012-03-29 06:18:26 UTC (rev 4173)
@@ -421,6 +421,9 @@
gint w, h;
RSFilterResponse *response = rs_filter_get_size(filter, request);
+ if (!RS_IS_FILTER_RESPONSE(response))
+ return FALSE;
+
w = rs_filter_response_get_width(response);
h = rs_filter_response_get_height(response);
if (width)
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit