Skip to content

magfreq_analysis~ needs sane defaults #1

@jonwwilkes

Description

@jonwwilkes

In magfreq_analysis_new you're setting x->overlap and x->winfac to zero by default. That causes a loop in the perfroutine to start from negative indices and screw up memory reads/writes when dereferencing/assigning to x->input.

In Purr Data I went ahead and checked for zero for those members and in those cases set the corresponding member to "1" to keep from crashing. If there are better default values or other fixes to this class please let me know on the issue tracker.

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