[GH-ISSUE #1638] DoubleEndedIterator is implemented incorrectly for LabelIter #718

Closed
opened 2026-03-15 23:57:24 +03:00 by kerem · 0 comments
Owner

Originally created by @bluejekyll on GitHub (Feb 17, 2022).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1638

Describe the bug
when reversing a label iterator, it does not "rev" from the end properly, as this is currently calculated as the current index.

To Reproduce
take an iter on any name, like www.example.com, and then get an label_iter, call next, this returns www then call rev and next and example is returned instead of com.

Expected behavior
com should be returned after the first next is called on the iterator example above.

Originally created by @bluejekyll on GitHub (Feb 17, 2022). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1638 **Describe the bug** when reversing a label iterator, it does not "rev" from the end properly, as this is currently calculated as the current index. **To Reproduce** take an iter on any name, like `www.example.com`, and then get an label_iter, call next, this returns `www` then call `rev` and `next` and `example` is returned instead of `com`. **Expected behavior** `com` should be returned after the first next is called on the iterator example above.
kerem 2026-03-15 23:57:24 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#718
No description provided.