Skip to content
Commit 45b1b135 authored by James Feist's avatar James Feist
Browse files

Fix off by 1 error



i can increment > qs_kv_size with some inputs. Fix this
by incrementing earlier in the loop instead so we don't
have to increment after the loop and possibly go past
max.

Tested: Used bad string and no longer saw segfault

Change-Id: Ia68cd9b24e9a0b16646197983c513d78df2239ed
Signed-off-by: default avatarJames Feist <james.feist@linux.intel.com>
parent f9dcc11c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment