Skip to content

jp2: use correct buffer_size for jas_stream_memopen

According to jasper's documentation, the second argument should be 0 instead of -1, to acquire such a dynamically growing buffer. This also causes a runtime crash due to the signedness of size_t.

Fixes: QTBUG-104398 Pick-to: 6.4 6.3 6.2 5.15 Change-Id: I173c6b7c9802c22fe0fa01083a71bf3b6ca7b134 Reviewed-by: Liang Qi liang.qi@qt.io (cherry picked from commit ad2e7216)

Merge request reports