the polygon point counts were checked against the space left in the whole file, and a small record inside a large file could claim far more points than it holds so bound them by the size of the record instead Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com> Change-Id: I0770546d0d48f9b306461da5e9c0117977079483 Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/12367 Reviewed-by: Noel Grandin <noel.grandin@collabora.com> Tested-by: Jenkins CPCI <releng@collaboraoffice.com> (cherry picked from commit 292bae6e2ee1d8749040b258cd7bf415cf6241b4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211410 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>