From 92b2fbaf04b1e518809b3f15b964ede2e946569e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 17 Apr 2025 07:42:45 +0200 Subject: [PATCH] Fixed ISO8211 parser error handling --- src/map/ENC/iso8211.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/ENC/iso8211.cpp b/src/map/ENC/iso8211.cpp index 46f86582..e922c6ae 100644 --- a/src/map/ENC/iso8211.cpp +++ b/src/map/ENC/iso8211.cpp @@ -187,6 +187,8 @@ bool ISO8211::readDDA(const FieldDefinition &def, SubFields &fields) SubFieldDefinition sfd(fieldType(typeStr, size)); if (sfd.type() == Unknown) return false; + if (tag >= tags.size()) + return false; defs[tag] = sfd; defTags[tag] = tags.at(tag); tag++;