irrlicht/source/Irrlicht
cutealien 05ebc43222 Fix TGA's with bad palette colors reading from behind palette memory
TGA's can claim to use less palette colors than they later do.
We only support 8-bit palettes, so to make this safer lets just always allocate at least 256 bytes.
Thanks @erlehmann for report and testcase: https://irrlicht.sourceforge.io/forum/viewtopic.php?p=307191
Based on Minetest bug report: https://github.com/minetest/irrlicht/issues/236

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6532 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-10-15 13:54:16 +02:00
..
Android Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
KHR Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
OpenGL OpenGL3: Use std::vector in VertexType instead of clever lifetime games 2023-10-13 11:36:52 +02:00
OpenGL3 OpenGL3: Replace direct calls into libGL with mt_opengl 2023-10-13 11:36:52 +02:00
OpenGLES2 OpenGL3: Replace direct calls into libGL with mt_opengl 2023-10-13 11:36:52 +02:00
builtInFont.bmp Merging r5975 through r6036 from trunk to ogl-es branch. 2020-01-03 19:05:16 +00:00
BuiltInFont.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CAnimatedMeshSceneNode.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CAnimatedMeshSceneNode.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CAttributeImpl.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CAttributes.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CAttributes.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CB3DMeshFileLoader.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CB3DMeshFileLoader.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CB3DMeshWriter.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CB3DMeshWriter.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CBillboardSceneNode.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CBillboardSceneNode.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CBlit.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CBoneSceneNode.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CBoneSceneNode.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CCameraSceneNode.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CCameraSceneNode.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CColorConverter.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CColorConverter.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CDummyTransformationSceneNode.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CDummyTransformationSceneNode.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CEGLManager.cpp Revert #225 (d98dc90b38) 2023-10-04 23:29:59 +02:00
CEGLManager.h Revert #225 (d98dc90b38) 2023-10-04 23:29:59 +02:00
CEmptySceneNode.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CEmptySceneNode.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CFileList.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CFileList.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CFileSystem.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CFileSystem.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CFPSCounter.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CFPSCounter.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGLXManager.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGLXManager.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIButton.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIButton.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUICheckBox.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUICheckBox.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIComboBox.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIComboBox.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIEditBox.cpp Fix character encoding conversion issues 2023-10-15 12:59:40 +02:00
CGUIEditBox.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIEnvironment.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIEnvironment.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIFileOpenDialog.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIFileOpenDialog.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIFont.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIFont.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIImage.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIImage.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIImageList.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIImageList.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIListBox.cpp Fix recently broken scroll behaviour of listbox with moveOverSelect 2023-10-15 13:38:24 +02:00
CGUIListBox.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIScrollBar.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIScrollBar.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUISkin.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUISkin.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUISpriteBank.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUISpriteBank.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIStaticText.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUIStaticText.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUITabControl.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CGUITabControl.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImage.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImage.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageLoaderBMP.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageLoaderBMP.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageLoaderJPG.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageLoaderJPG.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageLoaderPNG.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageLoaderPNG.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageLoaderTGA.cpp Fix TGA's with bad palette colors reading from behind palette memory 2023-10-15 13:54:16 +02:00
CImageLoaderTGA.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageWriterJPG.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageWriterJPG.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageWriterPNG.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CImageWriterPNG.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CIrrDeviceLinux.cpp Tiny spelling fixes 2023-10-15 13:38:06 +02:00
CIrrDeviceLinux.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CIrrDeviceOSX.h Merging r6511 through r6520 from branch releases/1.8 to trunk 2023-10-15 13:49:54 +02:00
CIrrDeviceOSX.mm Merging r6511 through r6520 from branch releases/1.8 to trunk 2023-10-15 13:49:54 +02:00
CIrrDeviceSDL.cpp Fix character encoding conversion issues 2023-10-15 12:59:40 +02:00
CIrrDeviceSDL.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CIrrDeviceStub.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CIrrDeviceStub.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CIrrDeviceWin32.cpp CIrrDeviceWin32::yield() now uses Sleep(0) instead of Sleep(1). 2023-10-15 13:37:26 +02:00
CIrrDeviceWin32.h Revert #225 (d98dc90b38) 2023-10-04 23:29:59 +02:00
CLimitReadFile.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CLimitReadFile.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CLogger.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CLogger.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CMakeLists.txt Fix character encoding conversion issues 2023-10-15 12:59:40 +02:00
CMemoryFile.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CMemoryFile.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CMeshCache.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CMeshCache.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CMeshManipulator.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CMeshManipulator.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CMeshSceneNode.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CMeshSceneNode.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CNSOGLManager.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CNSOGLManager.mm Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CNullDriver.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CNullDriver.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COBJMeshFileLoader.cpp Spelling fixes 2023-10-15 13:36:47 +02:00
COBJMeshFileLoader.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2Common.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2Driver.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2Driver.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2ExtensionHandler.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2ExtensionHandler.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2FixedPipelineRenderer.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2FixedPipelineRenderer.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2MaterialRenderer.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2MaterialRenderer.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2Renderer2D.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLES2Renderer2D.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLESCommon.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLESCoreExtensionHandler.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLESDriver.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLESDriver.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLESExtensionHandler.cpp Revert #225 (d98dc90b38) 2023-10-04 23:29:59 +02:00
COGLESExtensionHandler.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COGLESMaterialRenderer.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLCacheHandler.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLCacheHandler.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLCommon.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLCoreCacheHandler.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLCoreFeature.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLCoreRenderTarget.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLCoreTexture.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLDriver.cpp Avoid warning in VS 2022 2023-10-15 13:37:30 +02:00
COpenGLDriver.h Spelling fixes 2023-10-15 13:36:47 +02:00
COpenGLExtensionHandler.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLExtensionHandler.h Revert #225 (d98dc90b38) 2023-10-04 23:29:59 +02:00
COpenGLMaterialRenderer.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLShaderMaterialRenderer.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLShaderMaterialRenderer.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLSLMaterialRenderer.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COpenGLSLMaterialRenderer.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
COSOperator.cpp Fix character encoding conversion issues 2023-10-15 12:59:40 +02:00
COSOperator.h Unify documentation between IOSOperator and COSOperator 2023-10-15 12:59:40 +02:00
CReadFile.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CReadFile.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CSceneCollisionManager.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CSceneCollisionManager.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CSceneManager.cpp Spelling fixes 2023-10-15 13:39:42 +02:00
CSceneManager.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CSDLManager.cpp Fix OpenGL3 driver to compile standalone 2023-04-06 12:38:25 +02:00
CSDLManager.h cleanup: get rid of the legacy #ifndef #define craziness 2023-07-20 16:29:09 +02:00
CSkinnedMesh.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CSkinnedMesh.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CTimer.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CWebGL1Driver.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CWebGL1Driver.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CWebGLExtensionHandler.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CWGLManager.cpp Revert #225 (d98dc90b38) 2023-10-04 23:29:59 +02:00
CWGLManager.h Revert #225 (d98dc90b38) 2023-10-04 23:29:59 +02:00
CWriteFile.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CWriteFile.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CXMeshFileLoader.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CXMeshFileLoader.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CZipReader.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
CZipReader.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
IAttribute.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
Irrlicht.cpp Revert #225 (d98dc90b38) 2023-10-04 23:29:59 +02:00
mt_opengl_loader.cpp Enumerate extensions in the OpenGL 3 way 2023-02-27 17:41:03 +03:00
os.cpp Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
os.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
S2DVertex.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
SB3DStructs.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00
SoftwareDriver2_helper.h Cleanup line endings (#245) 2023-10-03 20:37:00 +02:00