Changeset: d346c3ffa08f for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d346c3ffa08f Modified Files: geom/monetdb5/geom.c Branch: Jun2020 Log Message:
Work around a broken compiler. diffs (22 lines): diff --git a/geom/monetdb5/geom.c b/geom/monetdb5/geom.c --- a/geom/monetdb5/geom.c +++ b/geom/monetdb5/geom.c @@ -1593,11 +1593,15 @@ dumpGeometriesSingle(BAT *idBAT, BAT *ge snprintf(newPath, lvlDigitsNum + 1, "%u", *lvl); } else { //remove the comma at the end of the path - newPath = GDKmalloc(pathLength #ifdef STATIC_CODE_ANALYSIS - + 1 + /* coverity complains about the allocated space being + * too small, but we just want to reduce the length of + * the string by one, so the length in the #else part + * is exactly what we need */ + newPath = GDKmalloc(pathLength + 1); +#else + newPath = GDKmalloc(pathLength); #endif - ); if (newPath == NULL) { GDKfree(singleWKB); throw(MAL, "geom.Dump", SQLSTATE(HY013) MAL_MALLOC_FAIL); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list