diff options
author | Hyunjee Kim <hj0426.kim@samsung.com> | 2019-07-16 07:40:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.ap-northeast-2.compute.internal> | 2019-07-16 07:40:02 +0000 |
commit | 4be925f08dc18613710715e647ad3d8ebc69141a (patch) | |
tree | a4f879edaa345ecd1f4784756598d9927382f10c | |
parent | 0388dd5009e77099b22228a652d5570e8ad5c984 (diff) | |
parent | ddf36f6850762076a2ed2952e59e9af529d114f0 (diff) | |
download | libxslt-4be925f08dc18613710715e647ad3d8ebc69141a.tar.gz libxslt-4be925f08dc18613710715e647ad3d8ebc69141a.tar.bz2 libxslt-4be925f08dc18613710715e647ad3d8ebc69141a.zip |
Merge "Fix uninitialized read of xsl:number token" into tizen_5.0_basesubmit/tizen_5.0_base/20190716.074831accepted/tizen/5.0/base/20190717.024539
-rw-r--r-- | libxslt/numbers.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libxslt/numbers.c b/libxslt/numbers.c index 5e9b80e7..7004eeb5 100644 --- a/libxslt/numbers.c +++ b/libxslt/numbers.c @@ -382,7 +382,10 @@ xsltNumberFormatTokenize(const xmlChar *format, tokens->tokens[tokens->nTokens].token = val - 1; ix += len; val = xmlStringCurrentChar(NULL, format+ix, &len); - } + } else { + tokens->tokens[tokens->nTokens].token = (xmlChar)'0'; + tokens->tokens[tokens->nTokens].width = 1; + } } else if ( (val == (xmlChar)'A') || (val == (xmlChar)'a') || (val == (xmlChar)'I') || |