#34 FFI :CSTRING objects are not NULL terminated

HEAD
closed
nobody
None
5
2014-09-23
2005-06-09
Michael Goffioul
No

When you declare a foreign function to accept an
argument of type :cstring, this is converted into a
ecl_string_pointer_safe() call. However, this function
does not make sure the given string object is NULL
terminated, which can happen with non simple strings
(typical example: the result of a (format nil...) form).

This is a problem for functions expecting a NULL
terminating string (and it's not UFFI compliant).

Michael.

Discussion


Anonymous


Cancel   Add attachments