1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-17 09:41:06 +03:00

fix(crash): libc++ + clang generate segfault on addressing null pointer here

This commit is contained in:
Leonid Fedorov
2025-08-04 10:17:29 +00:00
committed by Leonid Fedorov
parent 1cd7b55593
commit 0f3f73ddb5

View File

@@ -254,12 +254,13 @@ bool WEDataLoader::setupCpimport() // fork the cpimport
}
Cmds.push_back(0); // null terminate
// updatePrgmPath(Cmds);
// updatePrgmPath(Cmds);
// NOTE: for debugging
// // NOTE: for debugging
int aSize = Cmds.size();
for (int aIdx = 0; aIdx < aSize; ++aIdx)
// Do not address last terminating 0
for (int aIdx = 0; aIdx < aSize - 1; ++aIdx)
{
cout << "Args " << Cmds[aIdx] << endl;
}