Changeset: d990d63fdffa for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d990d63fdffa
Modified Files:
        monetdb5/modules/mal/mal_io.c
        monetdb5/modules/mal/txtsim.c
Branch: Jul2021
Log Message:

Merged with Oct2020


diffs (12 lines):

diff --git a/monetdb5/modules/mal/txtsim.c b/monetdb5/modules/mal/txtsim.c
--- a/monetdb5/modules/mal/txtsim.c
+++ b/monetdb5/modules/mal/txtsim.c
@@ -722,7 +722,7 @@ fstrcmp_impl_internal(dbl *ret, int **fd
           allocations performed.  Thus, we use a static buffer for the
           diagonal vectors, and never free them.  */
        fdiag_len = string[0].data_length + string[1].data_length + 3;
-       CHECK_INT_BUFFER_LENGTH(fdiag_buf, fdiag_buflen, fdiag_len, 
"txtsim.similarity");
+       CHECK_INT_BUFFER_LENGTH(fdiag_buf, fdiag_buflen, fdiag_len * 2 * 
sizeof(int), "txtsim.similarity");
        fdiag = *fdiag_buf + string[1].data_length + 1;
        bdiag = fdiag + fdiag_len;
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to