Skip to content

Conversation

@nils-cercariolo-st
Copy link
Contributor

Adds a I2C buffer size definition in conf file which allows to check the received length in case of corruption since CRC isn't checked yet at this time

Copy link
Contributor

@TofMassilia13320 TofMassilia13320 Jan 24, 2026

Choose a reason for hiding this comment

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

  1. Replace the returned value by STSE_SERVICE_BUFFER_OVERFLOW.
  2. For stsafe-a length check, maybe we could use tsafea_maximum_command_length array. By the way, no need to define platform buffer length through MW.
if (received_length>= stsafea_maximum_command_length[pSTSE->device_type]) {
 return STSE_SERVICE_BUFFER_OVERFLOW;
}

Copy link
Contributor

@TofMassilia13320 TofMassilia13320 Jan 24, 2026

Choose a reason for hiding this comment

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

Same as previous comment but adapt to stsafe-l

@nils-cercariolo-st
Copy link
Contributor Author

Great points, thanks !

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.

2 participants