]> git.lyx.org Git - features.git/commit
Fix bug #4269 and avoid crash with gzipped file
authorEnrico Forestieri <forenr@lyx.org>
Sat, 5 Jan 2019 18:17:37 +0000 (19:17 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 19 Mar 2019 20:27:35 +0000 (21:27 +0100)
commit33023e68117de9d33b2190e057aefec98725e533
treeafe1eb285506c2393e90d65849bbd8232f54944b
parent41a8994da902031a743373c1c57d028b7c900797
Fix bug #4269 and avoid crash with gzipped file

Call gunzip with quoted filenames as they may contain spaces or
other special characters.

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

(cherry picked from commit 69726b832b4ed1859d5c9e753c4437c98f5f2966)
(cherry picked from commit 7296e0e6ba8bcd343fb3cdb78c8590fd0864d469)
src/insets/InsetGraphics.cpp
status.23x