Skip to content

Read of uninitialized data #3257

Closed
Closed
@kornelski

Description

@kornelski

let mut ac: Aligned<[i16; 32 * 32]> = unsafe { Aligned::uninitialized() };

&ac.data,

This uses the unsafe and theoretically UB Aligned::uninitialized() (#1572) and passes it first for reading to encode_tx_block, and only later writes to it in luma_ac.

Besides the unsafety, this looks like a logic bug.

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions