Skip to content

Implementing ReadBuffer for &mut [C;N] might be unsound #24

Description

@jounathaen

As mentioned in #23, we basically implement ReadBuffer for all &mut [C;N] in

unsafe impl<'a, C: PixelColor, const N: usize> DMACapableFrameBufferBackend for &'a mut [C; N] {

This might be problematic because the slice could not be suitable for DMA access. Maybe it is already fine as is, but as I haven't fully thought this through, I'll leave this as an issue for now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions