[GRASS-SVN] r71450 - grass/branches/releasebranch_7_2/lib/raster
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 31 07:00:22 PDT 2017
Author: mmetz
Date: 2017-08-31 07:00:22 -0700 (Thu, 31 Aug 2017)
New Revision: 71450
Modified:
grass/branches/releasebranch_7_2/lib/raster/open.c
Log:
rasterlib: fix segfault if NULLS are compressed, but not data (backport trunk r71448)
Modified: grass/branches/releasebranch_7_2/lib/raster/open.c
===================================================================
--- grass/branches/releasebranch_7_2/lib/raster/open.c 2017-08-31 13:59:11 UTC (rev 71449)
+++ grass/branches/releasebranch_7_2/lib/raster/open.c 2017-08-31 14:00:22 UTC (rev 71450)
@@ -711,7 +711,7 @@
fcb->null_row_ptr = NULL;
if (R__.compress_nulls) {
fcb->null_row_ptr = G_calloc(fcb->cellhd.rows + 1, sizeof(off_t));
- G_zero(fcb->row_ptr, (fcb->cellhd.rows + 1) * sizeof(off_t));
+ G_zero(fcb->null_row_ptr, (fcb->cellhd.rows + 1) * sizeof(off_t));
Rast__write_null_row_ptrs(fd, fcb->null_fd);
}
More information about the grass-commit
mailing list