Incidencia #45724

strvec_iterate() evaluating parameter multiple times, does repeated function calls

Abrir Fecha: 2022-09-26 07:15 Última actualización: 2022-09-26 07:20

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

Details

strvec_iterate() evaluates psv twice for each iteration, and does strvec_size() call on every iteration.

Latter does partially protect against cases where someone shrinks the vector inside the iteration, but doesn't make it legal - iterator does would not follow backward such removals.

Ticket History (2/2 Histories)

2022-09-26 07:15 Updated by: cazfi
  • New Ticket "strvec_iterate() evaluating parameter multiple times, does repeated funcrtion calls" created
2022-09-26 07:20 Updated by: cazfi
  • Summary Updated

Attachment File List

No attachments

Editar

Please login to add comment to this ticket » Entrar