summaryrefslogtreecommitdiff
path: root/toxcore/friend_connection.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-04-28 11:10:25 +0000
committeriphydf <iphydf@users.noreply.github.com>2020-04-29 12:22:06 +0000
commit7edc0a52feea4f7618a3a8447b5a2607538776ff (patch)
tree43fb3ce70f033a70b6af6e9449f96cf2787b6d0e /toxcore/friend_connection.h
parentde3c21b5b70b76eae6db3b4556d12ea026bf5c40 (diff)
Bound the number of friends you can have to ~4 billion.
If you have UINT32_MAX friends, then adding one more friend will cause an overflow of the friend list (wrap to 0) and result in all friends being deleted. This subsequently results in a null pointer dereference when we're trying to add one friend to the deleted friend list.
Diffstat (limited to 'toxcore/friend_connection.h')
0 files changed, 0 insertions, 0 deletions