[
https://issues.apache.org/jira/browse/IMAGING-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17894020#comment-17894020
]
Marcono1234 commented on IMAGING-379:
-------------------------------------
Thanks that you have clearly defined a security model for Commons Imaging now!
In https://github.com/apache/commons-imaging/pull/401 I had created a
proof-of-concept for how to differentiate between 'trusted' and 'untrusted'
allocations, and by allocating memory incrementally to lower the impact of
malicious crafted images. I _might_ be able to update that pull request, but
(as mentioned there) only if there is really interest in these changes, and
only if this won't require me to sign the Apache CLA.
In the past I also suggested extending oss-fuzz coverage, see IMAGING-365. I
have linked it here now (hopefully that is ok for you).
Side note: I cannot view the Apache Mailing List thread you linked above; it
shows for me "An error code 404 occured while trying to fetch ...". Maybe
because I am not authorized?
> Generic solution for bounding memory use
> ----------------------------------------
>
> Key: IMAGING-379
> URL: https://issues.apache.org/jira/browse/IMAGING-379
> Project: Commons Imaging
> Issue Type: Improvement
> Components: imaging.*
> Reporter: Arnout Engelen
> Priority: Minor
>
> Processing images can take considerable amounts memory, and running out of
> memory can impact the entire application. It would be great to have a
> mechanism to make sure image processing remains within 'reasonable' bounds,
> and fail gracefully when it exceeds them. Of course what is 'reasonable' is
> application-dependent.
> This issue exists to track the ideas and experiments around implementing such
> a mechanism, which will likely have impact on various APIs. The 'Allocator'
> API on the master branch is the current work towards this goal.
> Potentially interesting testcases for this infrastructure include:
> * [https://oss-fuzz.com/testcase?key=4885302936469504]
> * https://lists.apache.org/thread/r4slmykftt190rypj4nzql7688q0fjjv
--
This message was sent by Atlassian Jira
(v8.20.10#820010)