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

Fix UBSan error about member call on address not pointing to ScriptTranslatorManager #2031

Merged
merged 1 commit into from
May 19, 2021

Conversation

oold
Copy link
Contributor

@oold oold commented May 19, 2021

The error occurred when calling getTranslator(const AbstractNodePtr&) on an RTShader::SGScriptTranslatorManager in ScriptCompilerManager::getTranslator(const AbstractNodePtr&) due to the ScriptTranslatorManager not being exported. Therefore, technically, both OgreMain and OgreRTShaderSystem contain distinct ScriptTranslatorManager types.

See https://stackoverflow.com/a/57304113 and https://bugs.llvm.org/show_bug.cgi?id=39191#c1.

…anslatorManager

The error occurred when calling getTranslator(const AbstractNodePtr&) on an RTShader::SGScriptTranslatorManager in ScriptCompilerManager::getTranslator(const AbstractNodePtr&) due to the ScriptTranslatorManager not being exported. Therefore, technically, both OgreMain and OgreRTShaderSystem contain distinct ScriptTranslatorManager types.

See https://stackoverflow.com/a/57304113 and https://bugs.llvm.org/show_bug.cgi?id=39191#c1.
@paroj paroj merged commit 019a8d2 into OGRECave:master May 19, 2021
paroj pushed a commit that referenced this pull request May 19, 2021
Fix UBSan error about member call on address not pointing to ScriptTranslatorManager 

The error occurred when calling getTranslator(const AbstractNodePtr&) on an RTShader::SGScriptTranslatorManager in ScriptCompilerManager::getTranslator(const AbstractNodePtr&) due to the ScriptTranslatorManager not being exported. Therefore, technically, both OgreMain and OgreRTShaderSystem contain distinct ScriptTranslatorManager types.

See https://stackoverflow.com/a/57304113 and https://bugs.llvm.org/show_bug.cgi?id=39191#c1.
raymond-w-ko pushed a commit to syandus/ogre that referenced this pull request Jan 3, 2022
Fix UBSan error about member call on address not pointing to ScriptTranslatorManager 

The error occurred when calling getTranslator(const AbstractNodePtr&) on an RTShader::SGScriptTranslatorManager in ScriptCompilerManager::getTranslator(const AbstractNodePtr&) due to the ScriptTranslatorManager not being exported. Therefore, technically, both OgreMain and OgreRTShaderSystem contain distinct ScriptTranslatorManager types.

See https://stackoverflow.com/a/57304113 and https://bugs.llvm.org/show_bug.cgi?id=39191#c1.
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

Successfully merging this pull request may close these issues.

None yet

2 participants