Fix QSvgFeGaussianBlur buffer allocation overflowing


QSvgFeGaussianBlur::apply allocates an array that will used in
gaussian blur calculations. Unlike the usual QImage allocations that
goes through QImageIOHandler, this buffer does not do that. This
change addresses this issue by safely checking the buffer size and
comparing it to the allocation limit read from QImageReader to
prevent size calculations and buffer allocation from overflowing or
exceeding QImageReader::allocationLimit.

Fixes: QTBUG-149766
Pick-to: 6.12 6.11
Change-Id: If025ef6b84646dd311138fef168f0753084c451d
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
commita98ff82c43362dab69db134315a1a0b957981592
parente57aa2dae0d0d397721f7eb2923b3f8fb53fb304
authorHatem ElKharashy <hatem.elkharashy@qt.io>
committerHatem ElKharashy <hatem.elkharashy@qt.io>
commit timeTue, 29 Sep 2026 09:09:13 +0000