Incidencia #47358

Disallow nonexisting startunit types

Abrir Fecha: 2023-02-15 01:11 Última actualización: 2024-08-26 14:55

Informador:
Propietario:
(Ninguno)
Tipo:
Estado:
Open
Componente:
Hito:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Ninguno
Fichero:
Ninguno

Details

rs_common_units() does not require all startunits types to be present. Startunits validation should check that unit types are available. Currently non-existent startunit leads to failing assert / crash.

Ticket History (3/5 Histories)

2023-02-15 01:11 Updated by: cazfi
  • New Ticket "Disallow nonexisting startunit types" created
2023-09-06 20:14 Updated by: cazfi
2023-11-10 15:01 Updated by: cazfi
2024-02-09 15:36 Updated by: cazfi
2024-08-26 14:55 Updated by: None
Comentario

I checked on GitHub rssanity.c, what do you think about this additional check?

// Check for non-existent startunit types startunit_iterate(su) {
if (!unit_type_exists(su->utype)) {
ruleset_error(logger, LOG_ERROR,
_("Non-existent startunit type: %s"), su->utype);
return FALSE;
}
} startunit_iterate_end;

Attachment File List

No attachments

Editar

Please login to add comment to this ticket » Entrar