GNU bug report logs -
#56546
29.0.50; unbounded RAM comsumption when displaying images
Previous Next
Reported by: "Jose A. Ortega Ruiz" <mail <at> jao.io>
Date: Thu, 14 Jul 2022 01:36:01 UTC
Severity: normal
Found in version 29.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #29 received at 56546 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Don't we allocate memory for the cached stuff? If so, we could count
> the bytes there, and record them in the cache itself.
No, we just call the gif/webp functions, and they allocate stuff on
their own. For webp, we do know the size of the main data blob, but not
for GIF -- we just call DGifOpenFileName+DGifSlurp, and looking over the
documentation, there doesn't seem to be any way to get it to cough up
how much data it allocated.
In the non-file case, we know the size of the data blob, and I guess we
could just see how big the GIF file is in the DGifOpenFileName case, and
assume that it allocates memory for the entire file. (Which may or may
not be true -- perhaps it uses mmap into the file instead, or
whatever...)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.