Changeset: e452d60b2018 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/e452d60b2018
Modified Files:
        gdk/gdk_heap.c
Branch: Dec2025
Log Message:

Protect against unloaded index heaps.
Fixes #8075.


diffs (21 lines):

diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c
--- a/gdk/gdk_heap.c
+++ b/gdk/gdk_heap.c
@@ -902,7 +902,7 @@ HEAPsave(Heap *h, const char *nme, const
 size_t
 HEAPvmsize(Heap *h)
 {
-       if (h && h->base && h->free)
+       if (h && h != (Heap *) 1 && h->base && h->free)
                return h->size;
        return 0;
 }
@@ -912,7 +912,7 @@ HEAPvmsize(Heap *h)
 size_t
 HEAPmemsize(Heap *h)
 {
-       if (h && h->base && h->free && h->storage != STORE_MMAP)
+       if (h && h != (Heap *) 1 && h->base && h->free && h->storage != 
STORE_MMAP)
                return h->size;
        return 0;
 }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to