Skip to content

Crash in makeCubic if cc.deltaT is INF / NAN #64

Closed
@mattreaganmozilla

Description

@mattreaganmozilla

I'm investigating crash reports from our iOS users and although I haven't been able to reproduce the crashes directly, from the stacktraces it appears that they're occurring in SwiftDraw.makeCubic() in this calculation:

let segments = max(Int(ceil(abs(cc.deltaT) / (LayerTree.Float.tau / 4.0))), 1)

I confirmed that if cc.deltaT is INF or NAN a fatal error will occur.

Can anyone possibly provide further insight into this, or have any ideas as to the type of SVG (perhaps malformed) that could cause this issue?

Note: we're using SwiftDraw 0.17.0, though it doesn't appear at a glance that the recent releases would have addressed this particular issue. But please LMK if they may have addressed this.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions