Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/vector/Vlib: Fix out-of-scope memory access (#4667)
A local array was used to store column name and column type for each column, and a pointer to this local array was stored and accessed outside its scope, which can cause undefined behavior. To avoid this, use memory from heap to store this information so that it's accessible outside where its defined and free this memory at the end to avoid memory leaks. This was found using cppcheck tool. Signed-off-by: Mohan Yelugoti <[email protected]>
- Loading branch information