Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak issue in EOM when opening JPEG with near maximum pixel resources #341

Open
a-shvedov opened this issue May 25, 2023 · 2 comments

Comments

@a-shvedov
Copy link

Expected behavior

I expect eom to be able to handle the input image correctly without consuming excessive system resources.

Actual behavior

When I open a JPG file with eom, it consumes a significant amount of system memory, resulting in it consuming all available RAM (16 GB).

Steps to reproduce the behavior

  1. Run the eom utility with the file:
`which eom` ./affect_163
  1. Monitor the system memory usage while opening the file.
  2. The eom memory consumption increases significantly, eventually consuming all available RAM.

The problem occurs all the time and is specific to the particular synthetic file created to test boundary resources (with a maximum supported image size of 65500 pixels):
Input file data:

affect_163: JPEG image data, JFIF standard 1.01, resolution (DPI), density 300x300, segment length 16, progressive, precision 8, 65435x65493, components 3

I will assume that uncontrolled memory consumption is a problem, because it could allow an unauthorized user to temporarily disable the environment in which the utility will run, in the absence of the OOM-killer.

MATE general version

MATE Desktop Environment 1.26.0

Package version

Eye of MATE Image Viewer 1.26.0

Linux Distribution

RHEL Release 7.3.2 (5.15.87-1.el7.3.x86_64)

Links

image:affect_163 *should testing in sandbox
valgrind log

@raveit65
Copy link
Member

raveit65 commented May 26, 2023

Hmm, eom-1.26 or MATE-1.27 aren't build by fedora maintainer for epel repo.
In result there will never been update for an unsupported version by me.
Beside from the issue i suggest to switch to rhel8/9 where MATE is full supported by fedora epel.

@a-shvedov
Copy link
Author

Also made a build from the latest upstream repository, but the problem persists regardless of the binding to the operating system..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants