Skip to content

Fix critical panics in weave table of contents refactor#3

Open
cod-a-holic wants to merge 1 commit into
masterfrom
argus/fix-weave-panics
Open

Fix critical panics in weave table of contents refactor#3
cod-a-holic wants to merge 1 commit into
masterfrom
argus/fix-weave-panics

Conversation

@cod-a-holic

Copy link
Copy Markdown
Owner

This PR fixes multiple critical panics introduced in the table of contents refactor:

  1. Adds proper bounds checking for slice access
  2. Initializes variables to prevent nil pointer dereferences
  3. Adds nil checks before type assertions
  4. Fixes goroutine panic handling

The root issue was that the refactor to use tocEntry structs instead of strings broke several assumptions in the existing code paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant