Review Request: limit the amount of columns & rows of any layer

Jaime Torres Amate jtamate at gmail.com
Fri Oct 7 19:24:21 BST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102800/
-----------------------------------------------------------

Review request for kdelibs.


Description
-------

Looking at the xcf loader in gimp, I think the limit could be 16 or 255, but 1024 also works.
The bad xcf in the bug tries to create around 3600000 rows and columns, filling all the memory in seconds (until linux kills the process).
That way, the maximum memory for that file is only around 256M.
By the way, the gimp is also unable to open that file.


This addresses bug 234030.
    http://bugs.kde.org/show_bug.cgi?id=234030


Diffs
-----

  kimgio/xcf.cpp 2a03d03 

Diff: http://git.reviewboard.kde.org/r/102800/diff/diff


Testing
-------

not oom killer in action.


Thanks,

Jaime Torres Amate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20111007/650370a2/attachment.htm>


More information about the kde-core-devel mailing list