Skip to content

Fuzzer failure cause by popping front of vector #11561

@TomAFrench

Description

@TomAFrench

Last night's fuzzer failed: https://github.com/noir-lang/noir/actions/runs/21932884367/job/63340538747

This got minimised to:

fn main() -> pub Field {
    // Safety: test
    unsafe { func_4(@[true, true]) }
}

unconstrained fn func_4(a: [bool]) -> Field {
    let mut idx: u32 = 0;
    while a[0] {
        if idx == 1 {
            break
        } else {
            idx = idx + 1;
            let _ = a.pop_front();
        }
    };
    0
}

This looks to be another instance of #11474

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions