Reviewed-by: vlivanov, dpochepk
Dead backbranch in main loop results in erroneous array access Reviewed-by: kvn, iveresov