]> git.lyx.org Git - features.git/commit
Avoid crash with gzipped file
authorEnrico Forestieri <forenr@lyx.org>
Sat, 5 Jan 2019 18:17:37 +0000 (19:17 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:55 +0000 (14:39 +0200)
commit44d58b954f66f75229ea078a3dd84e3e1f57ba50
treee46c8ea3cb46242fc888cefdef772c42fa5376e0
parentbe1f852b8056f6458f3cc9170df36b001fb0ab67
Avoid crash with gzipped file

In computing the length of the extension, the code does not account
for the prefix "unzipped_", which is added when the zipped filename
does not have one of the extensions "gz", "z", "Z", or "svgz", and
thus the used index is out of bounds. See also this thread:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg207360.html
src/insets/InsetGraphics.cpp