• Michael Natterer's avatar
    Issue #1730 - pat file that crashes gimp-2.10 · f46cf260
    Michael Natterer authored
    Introduce GIMP_PATTERN_MAX_SIZE (10000) and GIMP_PATTERN_MAX_NAME (256)
    and validate pattern dimensions and pattern name length against them.
    
    Add GIMP_BRUSH_MAX_NAME and validate that too.
    
    Also make sure that the names are properly terminated, and some
    cleanup.
    
    (cherry picked from commit 9b56ca8c)
    f46cf260
gimppattern-load.c 6.75 KB