Skip to content

Commit

Permalink
Fix AddressSanitizer: heap-buffer-overflow in H264_SVC
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Mar 7, 2024
1 parent 532274f commit dd0136f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions worker/src/RTC/Codecs/H264_SVC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ namespace RTC
case 14:
case 20:
{
if (len <= 1)
{
return nullptr;
}

size_t offset{ 1 };
uint8_t byte = data[offset];

Expand Down

0 comments on commit dd0136f

Please sign in to comment.