From 4d402c5ef14402ff0e6727f51f87539e567133dd Mon Sep 17 00:00:00 2001 From: Jiri Drbalek Date: Fri, 4 Mar 2016 10:58:12 +0000 Subject: [PATCH] raster scaling: fix accessing out of bounds pixels --- include/mapnik/span_image_filter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/span_image_filter.hpp b/include/mapnik/span_image_filter.hpp index 972558ccf..8559394fa 100644 --- a/include/mapnik/span_image_filter.hpp +++ b/include/mapnik/span_image_filter.hpp @@ -81,7 +81,7 @@ public: int src_x = x >> agg::image_subpixel_shift; int src_y = y >> agg::image_subpixel_shift; - const value_type* pix = reinterpret_cast(base_type::source().span(src_x, src_y, 0)); + const value_type* pix = reinterpret_cast(base_type::source().span(src_x, src_y, 1)); if (nodata_value_ && *nodata_value_ == *pix) { span->v = *nodata_value_;