#1452·stb

stb_image.h 中的 NULL 指针解引用

作者: 0xdd96创建于 2023年2月21日更新于 2026年9月29日
标签2 bug1 stb_image

我发现了 libsixel 中的 null 指针引用 漏洞,该漏洞也存在于本项目中。 具体来说,如果 stbi__pic_load_core 函数返回 0(第 6528 行),则 result 将被释放(第 6529 行)并设置为 0(第 6530 行)。此 null 指针将在 stbi__convert_format 中被引用,这将导致应用程序崩溃。