Ticket #45724

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

Eröffnet am: 2022-09-26 07:15 Letztes Update: 2022-09-26 07:20

Auswertung:
Verantwortlicher:
(Keine)
Typ:
Status:
Offen
Komponente:
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
Keine

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-Verlauf (2/2 Historien)

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

Dateianhangliste

Keine Anhänge

Bearbeiten

Please login to add comment to this ticket » Anmelden