Skip to content

Attempt to subtract with overflow in IndexState::update_limit #5284

@nical

Description

@nical

Description

CTS test: cts/webgpu/api/validation/encoding/cmds/render/setIndexBuffer/cts.https.html?q=webgpu:api,validation,encoding,cmds,render,setIndexBuffer:offset_and_size_oob:*

Backtrace:

10  xul.dll!core::panicking::panic() [panicking.rs:07dca489ac2d933c78d3c5158e3f43beefeb02ce : 144 + 0x7]
     rbx = 0x0000020c69752330    rbp = 0x000000b91bc3c4c0
     rsp = 0x000000b91bc3c430    r12 = 0x0000000000000001
     r13 = 0x0000020c696a9548    r14 = 0x0000000000000100
     r15 = 0x0000000000000104    rip = 0x00007ff819ed6e42
    Found by: call frame info
11  xul.dll!wgpu_core::command::render::IndexState::update_limit() [render.rs:94c7d956509d4818aa4580c84b48e16a6933627b : 332 + 0x17]
     rbx = 0x0000020c69752330    rbp = 0x000000b91bc3c4c0
     rsp = 0x000000b91bc3c4a0    r12 = 0x0000000000000001
     r13 = 0x0000020c696a9548    r14 = 0x0000000000000100
     r15 = 0x0000000000000104    rip = 0x00007ff817e93556
    Found by: call frame info
12  xul.dll!wgpu_core::global::Global::command_encoder_run_render_pass_impl<wgpu_hal::dx12::Api>(wgpu_core::id::Id<enum2$<wgpu_core::id::markers::CommandEncoder> >, wgpu_core::command::BasePassRef<enum2$<wgpu_core::command::draw::RenderCommand> >, ref$<slice2$<enum2$<core::option::Option<wgpu_core::command::render::RenderPassColorAttachment> > > >, enum2$<core::option::Option<ref$<wgpu_core::command::render::RenderPassDepthStencilAttachment> > >, enum2$<core::option::Option<ref$<wgpu_core::command::render::RenderPassTimestampWrites> > >, enum2$<core::option::Option<wgpu_core::id::Id<enum2$<wgpu_core::id::markers::QuerySet> > > >) [render.rs:94c7d956509d4818aa4580c84b48e16a6933627b : 1693 + 0xb]
     rbx = 0x0000020c69752330    rbp = 0x000000b91bc3c550
     rsp = 0x000000b91bc3c4d0    r12 = 0x0000000000000001
     r13 = 0x0000020c696a9548    r14 = 0x0000000000000100
     r15 = 0x0000000000000104    rip = 0x00007ff817dba012
    Found by: call frame info

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions