From 03315153841c3b97d438be142e58f3831bf634d9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 15 May 2021 20:26:44 +0100 Subject: [PATCH] shapelib: Check outline is valid Otherwise we fail later with an internal error and dump a stack trace to the client. Signed-off-by: Ian Jackson --- src/shapelib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shapelib.rs b/src/shapelib.rs index 927daebc..6658b83e 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -685,6 +685,7 @@ pub fn load_catalogue(libname: &str, src: &mut dyn LibrarySource) -> Contents { groupname: groupname.clone(), d, }); + group.d.outline.check(&group)?; if [ group.d.flip, group.d.back.is_some(), -- 2.30.2