[CM] s7_load_c_string

Christos Vagias chris.actondev at gmail.com
Wed Sep 1 12:58:21 PDT 2021


Hi all,
Indeed the problem in my case was unterminated x string but I was passing
raw bytes there.
Bil if I recall correctly the load_c_string also needs the string length as
a parameter. Couldn't this help skipping the null termination? If so, then
the function could be called load_bytes.

On Wed, Sep 1, 2021, 10:44 PM <bil at ccrma.stanford.edu> wrote:

> I'd expect a free cell complaint if it was the GC.  Didn't
> Christos run into a similar problem in early July (unbound
> variable from s7_load_c_string)? -- I think it turned out
> to be a missing null at the end of the string (and maybe
> off-by-1 length?).  I believe a file might not end in
> 0, so gzip/unzip might produce an unterminated string.
> s7_load_c_string should check for the 0.
>
>
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20210901/ee10b0d6/attachment.html>


More information about the Cmdist mailing list