[PR #72] [MERGED] Check arguments length before reading #81

Closed
opened 2026-03-14 01:12:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ameshkov/dnslookup/pull/72
Author: @Howard20181
Created: 6/21/2024
Status: Merged
Merged: 6/23/2024
Merged by: @ameshkov

Base: masterHead: fix


📝 Commits (1)

  • bf3ecf1 Check arguments length before reading

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 main.go (+3 -2)

📄 Description

fix

panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
main.getQuestion()
        /build/dnslookup/parts/dnslookup/build/main.go:239 +0x147
main.main()
        /build/dnslookup/parts/dnslookup/build/main.go:44 +0x145

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ameshkov/dnslookup/pull/72 **Author:** [@Howard20181](https://github.com/Howard20181) **Created:** 6/21/2024 **Status:** ✅ Merged **Merged:** 6/23/2024 **Merged by:** [@ameshkov](https://github.com/ameshkov) **Base:** `master` ← **Head:** `fix` --- ### 📝 Commits (1) - [`bf3ecf1`](https://github.com/ameshkov/dnslookup/commit/bf3ecf1d259b4f3643213390bae9ab64df50329e) Check arguments length before reading ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `main.go` (+3 -2) </details> ### 📄 Description fix ``` panic: runtime error: index out of range [1] with length 1 goroutine 1 [running]: main.getQuestion() /build/dnslookup/parts/dnslookup/build/main.go:239 +0x147 main.main() /build/dnslookup/parts/dnslookup/build/main.go:44 +0x145 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 01:12:25 +03:00
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/dnslookup#81
No description provided.