Skip to content

Conversation

@riwoh
Copy link
Contributor

@riwoh riwoh commented Jan 27, 2026

This was a bug introduced with the SVP disable flag.

riwoh added 2 commits January 26, 2026 16:09
Add early validation for in and out buffer_type fields to return
SA_STATUS_INVALID_PARAMETER when buffer type is neither SA_BUFFER_TYPE_CLEAR
nor SA_BUFFER_TYPE_SVP. This fixes the SaProcessCommonEncryptionNegativeTest.invalidInBufferType
test which was incorrectly returning SA_STATUS_NULL_PARAMETER.
Copilot AI review requested due to automatic review settings January 27, 2026 00:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens input validation in sa_process_common_encryption to correctly reject invalid buffer types, aligning client-side checks with the TA implementation and fixing a regression related to SVP disable handling.

Changes:

  • Added explicit validation that samples[i].out->buffer_type and samples[i].in->buffer_type must be either SA_BUFFER_TYPE_CLEAR or SA_BUFFER_TYPE_SVP, returning SA_STATUS_INVALID_PARAMETER otherwise.
  • Updated the file header to extend the copyright year to 2026.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@riwoh riwoh requested review from JRHewitt-CC and mhabrat January 27, 2026 01:26
Copy link

@JRHewitt-CC JRHewitt-CC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks fine and you can merge / release.
Is there any ticket with logs associated with this error?

@riwoh riwoh merged commit 29dae8f into main Feb 2, 2026
14 checks passed
@riwoh riwoh deleted the Issue_160 branch February 2, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants