amazon-kinesis-video-streams-webrtc-sdk-c icon indicating copy to clipboard operation
amazon-kinesis-video-streams-webrtc-sdk-c copied to clipboard

Fix retransmitter bug

Open hassanctech opened this issue 1 year ago • 2 comments

Issue #, if available: https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/issues/1991, https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/issues/1453

What was changed?

  • Added a diagram to show the memory layout for the ReTransmitter struct.
  • Fixed a bug where where an index for sequenceNumberList may go out of bounds but is hard to detect / won't cause a crash because in memory the next memory spot when we go out of bounds is into the validIndexList, and unless it's size is zero (which is likely never the case) we will not actually go out of bounds but instead we will overwrite a value in the wrong list.
  • Fixed an issue where we are reading an index from one list but updating the value in a different list.

Why was it changed?

  • Multiple reported customer issues, see at top.

How was it changed? See What was changed section and the file diff.

What testing was done for the changes? CI. [TODO] More targeted tests need to be added, will remove this once it has been added.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

hassanctech avatar May 23 '24 17:05 hassanctech

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.02%. Comparing base (8492287) to head (7e76675).

:exclamation: Current head 7e76675 differs from pull request most recent head c972883

Please upload reports for the commit c972883 to get more accurate results.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1994      +/-   ##
===========================================
+ Coverage    88.80%   89.02%   +0.22%     
===========================================
  Files           48       48              
  Lines        12709    12710       +1     
===========================================
+ Hits         11286    11315      +29     
+ Misses        1423     1395      -28     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar May 23 '24 17:05 codecov-commenter

This is a very old issue. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.

github-actions[bot] avatar Apr 20 '25 00:04 github-actions[bot]