diff options
author | onefang | 2020-04-23 01:29:42 +1000 |
---|---|---|
committer | onefang | 2020-04-23 01:29:42 +1000 |
commit | 8a9caff694a8514dca845b1b60057f783ba685f7 (patch) | |
tree | 2338188865ca698f6a96d3a8ffcefbb26dd809c4 /src/sledjchisl | |
parent | Linky-hashish is now a Base64, it saves a tiny bit of space in emails. (diff) | |
download | opensim-SC_OLD-8a9caff694a8514dca845b1b60057f783ba685f7.zip opensim-SC_OLD-8a9caff694a8514dca845b1b60057f783ba685f7.tar.gz opensim-SC_OLD-8a9caff694a8514dca845b1b60057f783ba685f7.tar.bz2 opensim-SC_OLD-8a9caff694a8514dca845b1b60057f783ba685f7.tar.xz |
Attempt to work around what might be a bug in MariaDB.
Getting lots of -
Invalid write of size 1
Address 0xfad1f44 is 0 bytes after a block of size 36 alloc'd
Always 36.
Diffstat (limited to 'src/sledjchisl')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index c4126b3..ab5c707 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -1126,7 +1126,7 @@ W("Allocated %d %d inBinds for %s", i, req->inCount, req->sql); | |||
1126 | // https://blog.cotten.io/a-taste-of-mysql-in-c-87c5de84a31d?gi=ab3dd1425b29 | 1126 | // https://blog.cotten.io/a-taste-of-mysql-in-c-87c5de84a31d?gi=ab3dd1425b29 |
1127 | // For some gotchas about all of this binding bit. | 1127 | // For some gotchas about all of this binding bit. |
1128 | req->inBind[i].buffer_type = fld->type; | 1128 | req->inBind[i].buffer_type = fld->type; |
1129 | req->inBind[i].buffer = xzalloc(fld->length) + 1; // Note the + 1 is for string types, and a waste for the rest. | 1129 | req->inBind[i].buffer = xzalloc(fld->length) + 4; // Note the + 1 is for string types, and a waste for the rest. +4 to work around a MariaDB bug? |
1130 | req->inBind[i].buffer_length = fld->length; | 1130 | req->inBind[i].buffer_length = fld->length; |
1131 | switch(fld->type) | 1131 | switch(fld->type) |
1132 | { | 1132 | { |