From 91376fd6099cce5f79bd4a997f51abd8366dae80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 17 Apr 2025 08:43:23 +0200 Subject: [PATCH] Make sure all fields have their definitions --- src/map/ENC/iso8211.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/map/ENC/iso8211.cpp b/src/map/ENC/iso8211.cpp index e922c6ae..b97ca3f7 100644 --- a/src/map/ENC/iso8211.cpp +++ b/src/map/ENC/iso8211.cpp @@ -194,6 +194,9 @@ bool ISO8211::readDDA(const FieldDefinition &def, SubFields &fields) tag++; } } + + if (tag != tags.size()) + return false; } fields = SubFields(defTags, defs, repeat);