diff options
author | Christer Fletcher <christer.fletcher@sonymobile.com> | 2013-08-15 16:40:16 +0200 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-09-06 10:11:55 +0900 |
commit | 451b70dd901181b96a027b1d44e4764a156c0330 (patch) | |
tree | a46484e7a9efb8f88756129c97f2ef6a41da4634 | |
parent | 250c97d651797efd5d95c8bbe1ac777572b03e43 (diff) | |
download | srec-451b70dd901181b96a027b1d44e4764a156c0330.tar.gz |
Correct infinite loop in swicms_set_cmn
When using Recognizer.setAcousticState a call is made down to
swicms_set_cmn in srec. If a valid vector is provided swicms_set_cmn
will loop indefinitely. Increase dim_count in the while loop to
prevent it.
Change-Id: I133bdaa6defd0677f56d0418832bb432d9feddba
-rw-r--r-- | srec/clib/swicms.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/srec/clib/swicms.c b/srec/clib/swicms.c index 4b3381b..6958789 100644 --- a/srec/clib/swicms.c +++ b/srec/clib/swicms.c @@ -427,6 +427,8 @@ ESR_ReturnCode swicms_set_cmn ( swicms_norm_info* swicms, const char *cmn_params { set_status = ESR_INVALID_ARGUMENT; } + + dim_count++; } if ( set_status == ESR_SUCCESS ) { |