Issue #1731: gbr file that crashes gimp-2.10.b3de0bb7a5bbb84a6851b3b5455de5d1eb271c55
commitb3de0bb7a5bbb84a6851b3b5455de5d1eb271c55
authorJehan <jehan@girinstud.io>
Thu, 28 Jun 2018 15:25:57 +0000 (28 17:25 +0200)
committerJehan <jehan@girinstud.io>
Thu, 28 Jun 2018 15:28:59 +0000 (28 17:28 +0200)
treeb8631a7a197bfcef002f78fbc0940035af2eb8f1
parent19f4abbbd6513e3ded9eea9f2f8700c70fd4f3f8
Issue #1731: gbr file that crashes gimp-2.10.

GIMP_BRUSH_MAX_SIZE was already defined (as 10.000 pixels per dimension,
which is big for a brush) in gimpbrush.h. Let's just use this to
validate the size returned by the header.
app/core/gimpbrush-load.c