Incidencia #48635

dai_select_tech() clang analyzer warning about garbage goal_values[i]

Abrir Fecha: 2023-09-17 00:49 Última actualización: 2023-09-18 13:22

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
2

Details

S3_1, clang analyzer:

../../../../src/ai/default/aitech.c:174:26: warning: The left operand of '>' is a garbage value [core.UndefinedBinaryOperatorResult]
      if (goal_values[i] > goal_values[newgoal]

This was partly fixed by #47959, but not completely

Ticket History (3/5 Histories)

2023-09-17 00:49 Updated by: cazfi
  • New Ticket "dai_select_tech() clang analyzer warning about garbage goal_valuesi" created
2023-09-17 01:12 Updated by: cazfi
  • Propietario Update from (Ninguno) to cazfi
  • Resolución Update from Ninguno to Accepted
  • Summary Updated
Comentario

Bugfix for S3_0 & S3_1 attached. Later branches are not affected, but small part of the patch ported for optimization reasons.

2023-09-18 13:22 Updated by: cazfi
  • Estado Update from Open to Cerrado
  • Resolución Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Entrar