Tíquete #44190

S3_0 compat mode depends on uninitialized category

: 2022-03-26 17:07 Última Atualização: 2022-04-17 00:38

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

Details

S3_0 ruleset.c has this condition for loading extra information:

if (!compat->compat_mode || compat->ver_terrain >= 10 || pextra->category != ECAT_RESOURCE) {

The idea is that resource type extras, that did not exist in 2.6 format, are not loaded here. They have been set up already. The problem is that pextra->category is set on this point *only* if there was such an ECAT_RESOURCE setup already. With bad luck, the category could have value ECAT_RESOURCE even when there's not been that setup, but the value is uninitialized.

As this is 2.6 -> 3.0 compatibility code, no other branches are affected.

Ticket History (3/4 Histories)

2022-03-26 17:07 Updated by: cazfi
  • New Ticket "S3_0 compat mode depends on uninitialized category" created
2022-04-15 12:30 Updated by: cazfi
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Nenhum to Accepted
2022-04-17 00:38 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