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, [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
