Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

sass_make_error and sass_make_warning cause segfault in custom user functions on windows #875

@asottile

Description

@asottile

I've prepped a branch to demonstrate this (with minor patches from 3.1.0 to get one file to build):

https://github.com/asottile/libsass/tree/bug_report

I've debugged this a little bit, it appears that a basically-garbage entry gets allocated into ctx.mem while processing the result of the custom C function.

I've also taken the same patch and applied it on top of master and received the same output.

This is kinda blocking my work here: sass/libsass-python#44

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions