Skip to content

[ASan] Fix heap-use-after-free issue with groups#1279

Merged
KimLS merged 1 commit intomasterfrom
bug_fix/group_delete
Mar 6, 2021
Merged

[ASan] Fix heap-use-after-free issue with groups#1279
KimLS merged 1 commit intomasterfrom
bug_fix/group_delete

Conversation

@mackal
Copy link
Copy Markdown
Contributor

@mackal mackal commented Mar 1, 2021

==2317==ERROR: AddressSanitizer: heap-use-after-free on address 0x6170000633c0 at pc 0x55ed1d8e8d8b bp 0x7ffda4bef580 sp 0x7ffda4bef578
WRITE of size 8 at 0x6170000633c0 thread T0
    #0 0x55ed1d8e8d8a in Group::SetLeader(Mob*) ../zone/groups.h:80
    #1 0x55ed1d8e8d8a in Group::DisbandGroup(bool) ../zone/groups.cpp:1016

ASan didn't like this

==2317==ERROR: AddressSanitizer: heap-use-after-free on address 0x6170000633c0 at pc 0x55ed1d8e8d8b bp 0x7ffda4bef580 sp 0x7ffda4bef578
WRITE of size 8 at 0x6170000633c0 thread T0
    #0 0x55ed1d8e8d8a in Group::SetLeader(Mob*) ../zone/groups.h:80
    #1 0x55ed1d8e8d8a in Group::DisbandGroup(bool) ../zone/groups.cpp:1016

ASan didn't like this
@mackal mackal changed the title Fix heap-use-after-free issue with groups [ASan] Fix heap-use-after-free issue with groups Mar 1, 2021
@KimLS KimLS merged commit b24ba22 into master Mar 6, 2021
@mackal mackal deleted the bug_fix/group_delete branch March 6, 2021 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants