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 unaligned memory access when reading DRM events #191

Merged
merged 2 commits into from
Mar 27, 2024

Commits on Mar 27, 2024

  1. Fix unaligned memory access when reading DRM events

    Running with debug assertions enabled on armv7 (an stm32mp157) panics
    due to unaligned memory reads:
    
    thread 'main' panicked at 'misaligned pointer dereference: address must be a multiple of 0x8 but is 0xbec90b44', .../drm-0.9.0/src/control/mod.rs:906:34
    
    Fix this by using the corresponding functions from core to safely
    copy the data (in C we'd do a memcpy).
    tronical committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    ec6fdee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c73f2a View commit details
    Browse the repository at this point in the history