Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninitialized memory on decode may be misinterpreted in later passes #38

Open
TiemoJung opened this issue Sep 21, 2016 · 0 comments
Open

Comments

@TiemoJung
Copy link

Hi,

just debugged a wrong shader. Root cause was uninitialized memory of a instruction. I just happened that one operator of an instruction was an input register and its special name was by chance 7 (index id) which resulted in wrong output.

A memset(psInst, 0, sizeof(Instruction) * ui32ShaderLength); after the psInst = hlslcc_malloc(sizeof(Instruction) * ui32ShaderLength); in decode.c (1376) got rid of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant