From 63cbf56cb2b80642ac7b2a6b4614c066beba131d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sat, 28 Oct 2017 16:03:23 +0300 Subject: [PATCH] MXS-1500: Fix `real_type` values The characters in the type weren't checked for correctness which caused the processing to read more characters than was intended. --- server/modules/routing/avrorouter/avro_schema.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/avrorouter/avro_schema.c b/server/modules/routing/avrorouter/avro_schema.c index a8698f1d9..eabcac725 100644 --- a/server/modules/routing/avrorouter/avro_schema.c +++ b/server/modules/routing/avrorouter/avro_schema.c @@ -569,7 +569,7 @@ int extract_type_length(const char* ptr, char *dest) /** Skip characters until we either hit a whitespace character or the start * of the length definition. */ - while (*ptr && !isspace(*ptr) && *ptr != '(') + while (*ptr && isalpha(*ptr)) { ptr++; }