Skip to content

Conversation

@tore-espressif
Copy link
Collaborator

Removed memcpy from this originally 3rd party code.
ESP targets support unaligned access.

@tore-espressif tore-espressif self-assigned this Nov 13, 2025
@tore-espressif tore-espressif marked this pull request as ready for review November 13, 2025 10:23
@tore-espressif
Copy link
Collaborator Author

@igi540 @roma-jam PTAL!

Copy link
Collaborator

@igi540 igi540 left a comment

Choose a reason for hiding this comment

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

LGTM. Just one question: Can you confirm that reading the UVC frame descriptor via a direct struct cast is safe across all supported targets (S2/S3/H4/P4) and memory regions (SRAM/PSRAM)?
C makes unaligned struct reads UB, and behavior may vary by arch/toolchain..

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.

4 participants