Skip to content

Use after free due to card's reason effect being reset #165

Description

@edo9300

First case of this issue was encountered on a call to Duel.ReturnToField where the effect that banished the card the first time had been reset. The scenario was Time Magic Hammer banishing a monster, then that same time magic hammer leaving the field and thus the effect that banished the card (and thus was set as the card's reason effect) was reset

if((ret == 1) && (!(target->current.reason & REASON_TEMPORARY) || (target->current.reason_effect->owner != core.reason_effect->owner)))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    memoIssues that are known and are very unlikely to get fixed because they require too many changes

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions