| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Signed-off-by: Arunesh Dwivedi <arunesh.dwivedi@example.com>
|
Hi @AruneshDwivedi, |
Sorry, something went wrong.
|
@olblak good question it's a real panic, not a theoretical one. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for the pullrequest
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
redirectToGitHubRawContent splits the changelog URL path on "/" and reads index 3 without checking the length, so a github.com changelog URL with fewer than four path segments panics with index out of range. Since the URL comes from the org.opencontainers.image.changelog image annotation, a short value like https://github.com/CHANGELOG.md crashes the run.
Split once, check the slice has more than three elements before touching index 3, and leave short paths unchanged.