Ticket #45724

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

오픈 날짜: 2022-09-26 07:15 마지막 업데이트: 2022-09-26 07:20

Reporter:
소유자:
(None)
Type:
Status:
Open
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

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

Edit

Please login to add comment to this ticket » Login