Skip to content

friendlist access (add, delete, ...) causes crashes sometimes #1257

@iphydf

Description

@iphydf

Based on #956.


between those 2 lines m->friendlist may point to old already freed address

Friend *newfriendlist = (Friend *)realloc(m->friendlist, num * sizeof(Friend));
if (newfriendlist == nullptr) {
return -1;
}
m->friendlist = newfriendlist;

ToxAV has other threads, so this may be accessed while invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low priority

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions