ImageMagick: Memory leak in coders/txt.c without freetype
Low severity
GitHub Reviewed
Published
Feb 23, 2026
in
ImageMagick/ImageMagick
•
Updated Feb 25, 2026
Description
Published to the GitHub Advisory Database
Feb 25, 2026
Reviewed
Feb 25, 2026
Last updated
Feb 25, 2026
If a
textureattribute is specified for a TXT file, an attempt will be made to read it viatexture=ReadImage(read_info,exception);. Later, when retrieving metrics via theGetTypeMetricsfunction, if this function fails (i.e.,status == MagickFalse), the calling function will exit immediately but fail to release the texture object, leading to memory leakage.References