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 misaligned dereference in H264 and H265 packetizers #1157

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

ray1422
Copy link

@ray1422 ray1422 commented Apr 10, 2024

Use memcpy instead of direct dereference to avoid
misaligned access.

Use memcpy instead of direct dereference to avoid
misaligned access.
Copy link
Owner

@paullouisageneau paullouisageneau left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

There is the exact same issue in H265RtpPacketizer, would you mind applying the same fix there too please?

uint32_t length = ntohl(*lengthPtr);

@ray1422
Copy link
Author

ray1422 commented Apr 14, 2024

Thank you for the fix!

There is the exact same issue in H265RtpPacketizer, would you mind applying the same fix there too please?

uint32_t length = ntohl(*lengthPtr);

Fixed

@paullouisageneau paullouisageneau changed the title Fix misaligned dereference in H264 Parser Fix misaligned dereference in H264 and H265 packetizers Apr 15, 2024
@paullouisageneau paullouisageneau merged commit 6e45f8f into paullouisageneau:master Apr 15, 2024
12 checks passed
@paullouisageneau paullouisageneau linked an issue Apr 15, 2024 that may be closed by this pull request
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.

Invalid pointer casting in H264 packetizer
2 participants