Skip to content

[CODE] Buffer over-read in DrawLightmappedGeneric_DX9_Internal() #111

@z33ky

Description

@z33ky

Describe the bug

My compiler detected a buffer over-read stemming from lightmappedgeneric_dx9_helper.cpp:1571. The called method SetPixelShaderConstant() attempts to read 4 floats from the passed pointer, which is in fact only a singular float.

Expected behavior

No buffer over-read.


Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions