We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e23bd13 commit 978879dCopy full SHA for 978879d
srtp/srtp.c
@@ -4912,7 +4912,8 @@ srtp_err_status_t srtp_stream_list_insert(srtp_stream_list_t list,
4912
size_t new_capacity = list->capacity + ((list->capacity + 1u) / 2u);
4913
4914
// check for capacity overflow.
4915
- if (new_capacity <= list->capacity) {
+ if ((sizeof(list_entry) * new_capacity) <=
4916
+ (sizeof(list_entry) * list->capacity)) {
4917
return srtp_err_status_alloc_fail;
4918
}
4919
0 commit comments