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 <[email protected]> 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
> [email protected]
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
>
_______________________________________________
Cmdist mailing list
[email protected]
https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to