mirror of
https://github.com/goodhosts/hostsfile.git
synced 2026-04-27 15:35:50 +03:00
[GH-ISSUE #39] Panic: goodhosts does not check slice length during removal #13
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hostsfile#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yunginnanet on GitHub (May 18, 2022).
Original GitHub issue: https://github.com/goodhosts/hostsfile/issues/39
Mind you, these entries were found in the wild with bone stock Proxmox installs. This was while using the remove command.
goodhosts/cli Command
hosts r ff00::0Version[s] reproduced with
(Using goodhosts/cli in all cases)
Excerpt of problematic IPv6 entries:
(ignore first line, it's only for context)
Stack Trace:
Other Thoughts
I started trying to trace this out but I'm not sure exactly where to fix this yet. I'll try to take a look when I have more time.
@yunginnanet commented on GitHub (May 18, 2022):
Actually upon further consideration I believe this is an issue with the cli tool, not this package.
That being said, panics should likely prevented even among misuse of the API. Reopening for this reason.
@rfay commented on GitHub (Apr 6, 2023):
I see what I think is the same panic with this package and the attached (pristine) /etc/hosts on macOS:
@rfay commented on GitHub (Apr 6, 2023):
I'll open a new issue; this happens during add.
@luthermonson commented on GitHub (Apr 6, 2023):
Thanks pls do
@rfay commented on GitHub (Apr 6, 2023):
Opened
@luthermonson commented on GitHub (Sep 29, 2023):
@yunginnanet your issue was actually different than the HostsPerLine, it was strictly in the RemoveIP code and is now fixed by all the reindex code I just added