提交 #654340: Ogre3D Ogre v14.4.1 / master commit f629d22 Mismatched Memory Management Routines信息

标题Ogre3D Ogre v14.4.1 / master commit f629d22 Mismatched Memory Management Routines
描述The issue arises from a memory management mismatch. The function stbi_write_png_to_mem() allocates its output buffer using malloc (via STBIW_MALLOC). Ogre then wraps this buffer inside MemoryDataStream(data, len, true), which assumes ownership and later frees it with delete[]. Because malloc and delete[] are incompatible allocators, this leads to undefined behavior. AddressSanitizer consistently detects the problem as an alloc-dealloc-mismatch.
来源⚠️ https://github.com/OGRECave/ogre/issues/3446
用户
 sand (UID 90194)
提交2025-09-15 08時24分 (11 月前)
管理2025-09-26 08時40分 (11 days later)
状态已接受
VulDB条目325958 [OGRECave Ogre 直到 14.4.1 OgreSTBICodec.cpp STBIImageCodec::encode Local Privilege Escalation]
积分20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!