Changeset: 4d36477c1d82 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/4d36477c1d82 Modified Files: gdk/gdk_logger.c Branch: Jun2023 Log Message:
Protect against 0 allocation. diffs (12 lines): diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c --- a/gdk/gdk_logger.c +++ b/gdk/gdk_logger.c @@ -2507,6 +2507,8 @@ log_flush(logger *lg, ulng ts) if (updated == NULL) { nupdated = BATcount(lg->catalog_id); allocated = ((nupdated + 31) & ~31) / 8; + if (allocated == 0) + allocated = 4; updated = GDKzalloc(allocated); if (updated == NULL) { log_unlock(lg); _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org