Skip to content

Possible bug/undefined behavior due to out-of-bounds access in the shader module creation #1

@photon-schiesser

Description

@photon-schiesser

auto code = readShaderSrc(filename);
auto shaderCI = vk::ShaderModuleCreateInfo(flags, code.size()
, reinterpret_cast<uint32_t*>(code.data()));
return device.createShaderModule(shaderCI);

Should code.size() be code.size()*sizeof(char)/sizeof(uint32_t) ?

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