search for: sql_stringsize

Displaying 1 result from an estimated 1 matches for "sql_stringsize".

2017 Oct 19
0
[Bug 1193] New: Incorrect malloc for SQL statements and missing strings length check
...mic" for integers and safer for strings : - Integers are now reserving only the maximum possible number of bytes they could use (eg. ULOGD_RET_INT32 lowest value is -2147483648 which is 11 characters long : it will now only allocates 11 bytes for those keys instead of 100) - For strings, SQL_STRINGSIZE now defines the max length of values (before being escaped), values longer than SQL_STRINGSIZE will be set to NULL and the double of SQL_STRINGSIZE is malloc'd in case all characters would have to be escaped (eg. a value consisting exclusively of quotes will be twice as long after being returne...