[PATCH v1] tools: ai review fix uninitialized variable

Thomas Monjalon thomas at monjalon.net
Tue Jul 14 12:27:03 CEST 2026


13/07/2026 18:11, Matthew Gee:
> There was a previously introduced bug where the curr_state variable in
> the classify_review function would be potentially uninitialized. This
> would cause the script to crash when the variable was used during the
> analysis of the AI review text.
> 
> This patch fixes the bug by initializing the variable before it is used
> during the parsing of the AI review text.
> 
> Fixes: 18b85df67daa ("devtools: fix AI review result classification")
> 
> Signed-off-by: Matthew Gee <mgee at iol.unh.edu>

Applied, thanks.





More information about the dev mailing list