LibreOffice before 2017-01-02 has an out-of-bounds write caused by a heap-based buffer overflow related to the tools::Polygon::Insert function in tools/source/generic/poly.cxx.
https://security.gentoo.org/glsa/201706-28
https://github.com/LibreOffice/core/commit/62a97e6a561ce65e88d4c537a1b82c336f012722
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=372
https://access.redhat.com/errata/RHSA-2017:1975
http://www.securitytracker.com/id/1039029
http://www.securityfocus.com/bid/97671
http://www.libreoffice.org/about-us/security/advisories/cve-2017-7870/