DolphinDBPlugin icon indicating copy to clipboard operation
DolphinDBPlugin copied to clipboard

kdb+ plugin uses unsafe C++ code

Open FlyingOE opened this issue 10 months ago • 2 comments

Assigning the result of str.c_str() to a pointer to be used later is against the C++ standard and is not safe. For example: https://github.com/dolphindb/DolphinDBPlugin/blob/30535a5e76a2ccbfa9820de396313c8cf9d713b5/kdb/src/kdb.cpp#L61

FlyingOE avatar Aug 10 '23 08:08 FlyingOE