Package: gimp-texturize
Version: 2.0-2
Tags: patch

Giving gimp-texturize a large image reliably causes it to segfault at
graphcut.cpp:102. (The test image contains a little in excess of 8 million
pixels; architecture is amd64.)

The cause appears to be that node_of_pixel[] is too large: it extends beyond
the start of the available stack space; consequently, the first write into
the array (at index 0) fails. The solution is to allocate from the heap
rather than from the stack.

-- 
| Darren Salt            | linux at youmustbejoking | nr. Ashington, | Doon
| using Debian GNU/Linux | or ds    ,demon,co,uk    | Northumberland | Army
| + http://www.youmustbejoking.demon.co.uk/ & http://tartarus.org/ds/

If an experiment works, you must be using the wrong equipment.

Attachment: crash-fix.patch
Description: Binary data

Reply via email to