Files
odfstudio/tools
Noel 8c9a4ff511 throw exception in SvStream when reading past end of file
to avoid chasing weird problems where we read past the end
of file, which leads to random data in the variable we read into.

I expect a couple of possible regressions from this change

(1) memory leaks caused by non-exception-safe memory handling.
Of which there should not be much because we're pretty good
about using smart pointer classes these days.

(2) Broken files which used to load, will no longer do so.
These will have to be debugged by putting a breakpoint
on the SvStreamEOFException constructor, and examining
the backtrace to see where we should be catching and ignoring
the exception to make the code continue to handle such broken
files.

Change-Id: I351be031bb083a3484a9a1b650a58892700e6fb7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105936
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-12-18 06:54:06 +01:00
..
2020-12-04 12:05:13 +01:00
2020-06-18 10:54:10 +02:00
…
…

Predates sal - string functions, url manipulation, stream stuff,
polygons, etc.

Exact history is lost before Sept. 18th, 2000, but old source code
comments show that part of the tools library dates back until at least
April 1991.

This directory will be removed in the near future (see fdo#39445 or
fdo#63154).