OGRECave / ogre

scene-oriented, flexible 3D engine (C++, Python, C#, Java)
https://ogrecave.github.io/ogre/
MIT License
3.91k stars 963 forks source link

[Crash Report] overflow access in D3D11HLSLProgram::buildConstantDefinitions() #3050

Closed walker-WSH closed 6 months ago

walker-WSH commented 6 months ago

Hi, I am building SampleBrowser with tag14.2.0. When I startup this sample, overflow access to vector in D3D11HLSLProgram::buildConstantDefinitions() always appear.

I checked tag14.1.2, crash also happen in this class. If you need more information, please tell me.

1709264003 1709264071

paroj commented 6 months ago

cannot reproduce.

change the line to

if (mVarDescPointer.at(pointerCount-1).uFlags & D3D_SVF_USED)

in a relwithdebinfo build, but no exception was thrown.

Do you have any other changes to the source code? Can you provide the ogre.log?

walker-WSH commented 6 months ago

hi @paroj
sorry, it's my fault. this crash is caused by my failture of preparing dependency libs

so I close it. thanks~