You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-5464: Fixes of bugs from ASAN warnings, part one (#2792)
* Fixes of bugs from ASAN warnings, part one * MQC as static library, with nifty counter for global map and mutex * Switch clang to 16 * link messageqcpp to execplan
This commit is contained in:
@ -2415,12 +2415,10 @@ void BulkLoadBuffer::tokenize(const boost::ptr_vector<ColumnInfo>& columnsInfo,
|
||||
//------------------------------------------------------------------
|
||||
case FLD_PARSE_ENCLOSED_STATE:
|
||||
{
|
||||
char next = *(p + 1);
|
||||
|
||||
if ((p + 1 < pEndOfData) &&
|
||||
(((c == ESCAPE_CHAR) && ((next == STRING_ENCLOSED_CHAR) || (next == ESCAPE_CHAR) ||
|
||||
(next == LINE_FEED) || (next == CARRIAGE_RETURN))) ||
|
||||
((c == STRING_ENCLOSED_CHAR) && (next == STRING_ENCLOSED_CHAR))))
|
||||
(((c == ESCAPE_CHAR) && ((*(p + 1) == STRING_ENCLOSED_CHAR) || (*(p + 1) == ESCAPE_CHAR) ||
|
||||
(*(p + 1) == LINE_FEED) || (*(p + 1) == CARRIAGE_RETURN))) ||
|
||||
((c == STRING_ENCLOSED_CHAR) && (*(p + 1) == STRING_ENCLOSED_CHAR))))
|
||||
{
|
||||
// Create/save original data before stripping out bytes
|
||||
if (rawDataRowLength == 0)
|
||||
@ -2515,7 +2513,7 @@ void BulkLoadBuffer::tokenize(const boost::ptr_vector<ColumnInfo>& columnsInfo,
|
||||
// cout << "triming ... " << endl;
|
||||
char* tmp = p;
|
||||
|
||||
while (*(--tmp) == ' ')
|
||||
while (tmp != lastRowHead && *(--tmp) == ' ')
|
||||
{
|
||||
// cout << "offset is " << offset <<endl;
|
||||
offset--;
|
||||
|
Reference in New Issue
Block a user