Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix packet length validation, new cipher tests #280

Merged

Conversation

sirzooro
Copy link
Contributor

@sirzooro sirzooro commented Jul 7, 2024

This is v2 CP of two commits from master:

Fix packet length validation - #278
Missing packet length validations could cause crash.

New SRTP cipher test suite - #279
Moved tests from srtp_cipher_aead_aes_gcm_test.go to new file, cleaned up their code to make it more DRY. Added tests for AES CM ciphers there too.
This new cipher test suite will make it easier to add tests for new SRTP features without lots of copy/paste.

This is v2 CP of two commits from master:

Fix packet length validation
Missing packet length validations could cause crash.

New SRTP cipher test suite
Moved tests from srtp_cipher_aead_aes_gcm_test.go to new file, cleaned
up their code to make it more DRY. Added tests for AES CM ciphers there
too.
This new cipher test suite will make it easier to add tests for new
SRTP features without lots of copy/paste.
@sirzooro sirzooro requested review from at-wat and adamroach July 7, 2024 15:25
@sirzooro sirzooro merged commit a3ec2e6 into pion:v2 Jul 7, 2024
7 of 9 checks passed
@sirzooro sirzooro deleted the v2_fix_packet_len_check_add_cipher_tests branch July 7, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant