Changeset: e4fa47b03033 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e4fa47b03033
Modified Files:
        common/stream/stream.c
Branch: Jun2020
Log Message:

Fix memory corruption bug in curl stream


diffs (12 lines):

diff --git a/common/stream/stream.c b/common/stream/stream.c
--- a/common/stream/stream.c
+++ b/common/stream/stream.c
@@ -2183,7 +2183,7 @@ write_callback(char *buffer, size_t size
                size_t maxsize;
 
                maxsize = (c->usesize + size + BLOCK_CURL - 1) & ~(BLOCK_CURL - 
1);
-               b = realloc(c->buffer, c->maxsize);
+               b = realloc(c->buffer, maxsize);
                if (b == NULL)
                        return 0;       /* indicate failure to library */
                c->buffer = b;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to