Tíquete #47809

load_action_range_max() passing NULL as string

: 2023-04-09 00:35 Última Atualização: 2023-09-30 06:45

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
2

Details

load_action_range_max() handles all actions, including those for which action_max_range_ruleset_var_name() returns NULL. Yet it does 'secfile_entry_lookup(file, "actions.%s", action_max_range_ruleset_var_name(act));'

Haven't checked the other handling of other similar ruleset entries for actions. It's possible that this is a common bug-pattern.

Ticket History (3/7 Histories)

2023-04-09 00:35 Updated by: cazfi
  • New Ticket "load_action_range_max() passing NULL as string" created
2023-09-18 10:54 Updated by: cazfi
Comentário

The function is actually only called when there's var name, but this should still be refactored to avoid the duplicate call.

2023-09-18 11:10 Updated by: cazfi
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Nenhum to Accepted
  • Marco Update from (Nenhum) to 3.1.0-beta4 (fechado)
2023-09-22 21:35 Updated by: cazfi
Comentário

Pushed to branches other than S3_1. S3_1 will wait for 3.1.0-beta3 release first.

2023-09-30 06:45 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Login