[CM] s7_load_c_string
Woody Douglass
wdouglass at carnegierobotics.com
Thu Sep 2 04:58:43 PDT 2021
My string wasn't null-terminated -- i assumed that it didn't need to
be, because of the length argument. Should the length include the null
byte or not?
Thanks,
Woody
On Wed, 2021-09-01 at 12:43 -0700, 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.
>
>
More information about the Cmdist
mailing list