]> 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)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 5 Jan 2019 18:17:37 +0000 (19:17 +0100)
commit7296e0e6ba8bcd343fb3cdb78c8590fd0864d469
treee46c8ea3cb46242fc888cefdef772c42fa5376e0
parentc9e62dec53aee97fff6dffcb6d8ef84331ba5c30
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