From 58398bc754b4843218f120a3d112930f157275d0 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Thu, 5 Jul 2018 21:45:11 +0100 Subject: [PATCH] Enforce length of GSRN Fixes #115 reported by Daniel Gredler --- backend/gs1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/gs1.c b/backend/gs1.c index 203fc787..1300bea8 100644 --- a/backend/gs1.c +++ b/backend/gs1.c @@ -286,8 +286,6 @@ int gs1_verify(struct zint_symbol *symbol, const unsigned char source[], const s // Length 17 Fixed case 402: // GSIN - case 8017: // GSRN PROVIDER - case 8018: // GSRN RECIPIENT if (data_length[i] != 17) { error_latch = 1; } else { @@ -298,6 +296,8 @@ int gs1_verify(struct zint_symbol *symbol, const unsigned char source[], const s // Length 18 Fixed case 0: // SSCC case 8006: // ITIP + case 8017: // GSRN PROVIDER + case 8018: // GSRN RECIPIENT if (data_length[i] != 18) { error_latch = 1; } else {