Closed QuLogic closed 5 years ago
Nice finds. Those tests are basically wrappers around the libsass library. Can you reproduce those problems in that project?
I think I figured out the problem. The location of the value for Sass_String
is one struct member later than for Sass_Error
. On 64-bit systems, the two first members are packed together, but they aren't on 32-bit systems. So calling the string accessor on an error value returns garbage.
I'm running a test build across all arches using 0.9.2, and it fails 3 tests on 32-bit systems (i686 and armv7hl):
These are all tests that attempt to marshal and unmarshal an error. It does not appear to matter whether I build with the bundled libsass or a system one.