From 79be5afdc14f12e2e36771473c5b3ee6a6c23ca3 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 10 Dec 2010 12:13:06 -0600 Subject: [PATCH] stkutil: Allow empty strings in for Text dataobj Explicitly allow length = 1 (DCS) followed by zero characters. This seems to be explicitly allowed by the test specification (namely Get Input 1.9.1A) --- src/stkutil.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/stkutil.c b/src/stkutil.c index 63da0415..d7493f10 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -565,10 +565,6 @@ static gboolean parse_dataobj_text(struct comprehension_tlv_iter *iter, const unsigned char *data; char *utf8; - /* DCS followed by some text, cannot be 1 */ - if (len == 1) - return FALSE; - if (len == 0) { *text = g_try_malloc0(1); return TRUE;