Blame SOURCES/0056-fpi-ssm-Also-bug-on-negative-state-value.patch

73b847
From 66b6a2598b599afe874efe15bec4cdcb34f7ee79 Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Fri, 22 Nov 2019 18:03:08 +0100
73b847
Subject: [PATCH 056/181] fpi-ssm: Also bug-on negative state value
73b847
73b847
Being an integer, anything could happen.
73b847
---
73b847
 libfprint/fpi-ssm.c | 2 +-
73b847
 1 file changed, 1 insertion(+), 1 deletion(-)
73b847
73b847
diff --git a/libfprint/fpi-ssm.c b/libfprint/fpi-ssm.c
73b847
index 5367e32..5299e2d 100644
73b847
--- a/libfprint/fpi-ssm.c
73b847
+++ b/libfprint/fpi-ssm.c
73b847
@@ -317,7 +317,7 @@ void
73b847
 fpi_ssm_jump_to_state (FpiSsm *machine, int state)
73b847
 {
73b847
   BUG_ON (machine->completed);
73b847
-  BUG_ON (state >= machine->nr_states);
73b847
+  BUG_ON (state < 0 || state >= machine->nr_states);
73b847
   machine->cur_state = state;
73b847
   __ssm_call_handler (machine);
73b847
 }
73b847
-- 
73b847
2.24.1
73b847