Skip to content

XRD  #14

@jaimedelacruz

Description

@jaimedelacruz

PRD runs with XRD subrogate lines can trigger a bug in the allocation of line->gII.
Basically, that array is allocated in initial_p.c, but certain loops in scatter.c can go out of bounds because the loop limits are computed based on other XRD lines.

Perhaps the most elegant solution is to run once a similar loop as in scatter.c and check the array boundaries. Then store the maximum number of elements and always reallocate with that number of elements.

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