Skip to content

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

@zoff99

Description

@zoff99

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

Labels

P0Critical prioritybugBug fix for the user, not a fix to a build script

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions