shsajjadi / OctaveCoder

Octave Coder __ A code generator and build system that converts Octave to C++
Other
27 stars 3 forks source link

Segfault when dq string contains \0 #23

Closed shsajjadi closed 1 year ago

shsajjadi commented 1 year ago

There is a segfault if a double quoted string contains "\0". Currently I use octave_value (const char, char) to create an octave_value form const char. But the correct way is using the constructor of Array to copy the cont char* to the array buffer. The size of the buffer will be taken by the user defined string literal.

shsajjadi commented 1 year ago

Fixed by: 16e64e4bb434209d710d4fa1729db405693590ac