diff options
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/group.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/group.c b/toxcore/group.c index f6f8c704..c1779ef9 100644 --- a/toxcore/group.c +++ b/toxcore/group.c | |||
@@ -3294,6 +3294,11 @@ static State_Load_Status load_conferences(Group_Chats *g_c, const uint8_t *data, | |||
3294 | } | 3294 | } |
3295 | 3295 | ||
3296 | g->title_len = *data; | 3296 | g->title_len = *data; |
3297 | |||
3298 | if (g->title_len > MAX_NAME_LENGTH) { | ||
3299 | return STATE_LOAD_STATUS_ERROR; | ||
3300 | } | ||
3301 | |||
3297 | ++data; | 3302 | ++data; |
3298 | 3303 | ||
3299 | if (length < (uint32_t)(data - init_data) + g->title_len) { | 3304 | if (length < (uint32_t)(data - init_data) + g->title_len) { |