Issue #1730 - pat file that crashes gimp-2.10
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.
Showing with 99 additions and 34 deletions