Changeset: fc124ae37f41 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/fc124ae37f41
Modified Files:
        monetdb5/modules/mal/pp_algebra.c
Branch: pp_hashjoin
Log Message:

fix buffer size for large numbers (not very likely with number limited to core 
count).


diffs (39 lines):

diff --git a/monetdb5/modules/mal/pp_algebra.c 
b/monetdb5/modules/mal/pp_algebra.c
--- a/monetdb5/modules/mal/pp_algebra.c
+++ b/monetdb5/modules/mal/pp_algebra.c
@@ -1081,7 +1081,7 @@ LALGunique(Client ctx, bat *rid, bat *ui
                pipeline_unlock(p);
                assert(p->wid < p->p->nr_workers);
                if (!h->allocators[p->wid]) {
-                       char name[8];
+                       char name[MT_NAME_LEN];
                        snprintf(name, sizeof(name), "pp%d", p->wid);
                        h->allocators[p->wid] = create_allocator(name, false);
                        if (!h->allocators[p->wid]) {
@@ -1333,7 +1333,7 @@ LALGgroup_unique(Client ctx, bat *rid, b
                pipeline_unlock(p);
                assert(p->wid < p->p->nr_workers);
                if (!h->allocators[p->wid]) {
-                       char name[8];
+                       char name[MT_NAME_LEN];
                        snprintf(name, sizeof(name), "pp%d", p->wid);
                        h->allocators[p->wid] = create_allocator(name, false);
                        if (!h->allocators[p->wid]) {
@@ -1684,7 +1684,7 @@ LALGgroup(Client ctx, bat *rid, bat *uid
                pipeline_unlock(p);
                assert(p->wid < p->p->nr_workers);
                if (!h->allocators[p->wid]) {
-                       char name[8];
+                       char name[MT_NAME_LEN];
                        snprintf(name, sizeof(name), "pp%d", p->wid);
                        h->allocators[p->wid] = create_allocator(name, false);
                        if (!h->allocators[p->wid]) {
@@ -1978,7 +1978,7 @@ LALGderive(Client ctx, bat *rid, bat *ui
                pipeline_unlock(p);
                assert(p->wid < p->p->nr_workers);
                if (!h->allocators[p->wid]) {
-                       char name[8];
+                       char name[MT_NAME_LEN];
                        snprintf(name, sizeof(name), "pp%d", p->wid);
                        h->allocators[p->wid] = create_allocator(name, false);
                        if (!h->allocators[p->wid]) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to