coturn/src
Michael Jones af4c44a818
Additional refactoring of ns_turn_allocation.* to address security scanner concerns (#1514)
You can see the list here:
https://github.com/coturn/coturn/security/code-scanning

In this case, i'm attempting to address:

ns_turn_allocation.c:725 -- Dereferencing NULL pointer. 'ub->bufs'
contains the same NULL value as 'realloc()' did.
ns_turn_allocation.c:724 -- 'realloc' might return null pointer:
assigning null pointer to 'ub->bufs', which is passed as an argument to
'realloc', will cause the original memory block to be leaked.
ns_turn_allocation.c:604 -- Dereferencing NULL pointer. 'a->tcs.elems'
contains the same NULL value as 'realloc()' did.
    ns_turn_allocation.c:582 -- Dereferencing NULL pointer 'tc'.
ns_turn_allocation.c:603 -- 'realloc' might return null pointer:
assigning null pointer to 'a->tcs.elems', which is passed as an argument
to 'realloc', will cause the original memory block to be leaked.
    ns_turn_allocation.c:525 -- Using uninitialized memory '*chi'.
    ns_turn_allocation.c:229 -- Using uninitialized memory '*slot'.

---------

Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com>
2024-10-18 20:54:47 -07:00
..
apps Delete dead code (#1563) 2024-10-04 10:27:31 -07:00
client Use bool, instead of int, for the functions in ns_turn_msg.c (#1553) 2024-08-23 17:49:14 -07:00
client++ Additional refactoring of ns_turn_allocation.* to address security scanner concerns (#1514) 2024-10-18 20:54:47 -07:00
server Additional refactoring of ns_turn_allocation.* to address security scanner concerns (#1514) 2024-10-18 20:54:47 -07:00
CMakeLists.txt Support Windows MSVC (#855) 2022-10-28 19:32:23 -07:00
ns_turn_defs.h Fix compiler warnings from continuous integration (#1555) 2024-08-04 15:44:15 -07:00