Skip to content

Prevent nil dereference during package export resolution - #64419

Draft
Daniel Rosenwasser (DanielRosenwasser) with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-nil-pointer-dereference
Draft

Daniel Rosenwasser (DanielRosenwasser) with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-nil-pointer-dereference

Conversation

Copilot AI commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Package exports/imports resolution could dereference a nil lookup table during program construction.

  • Resolution: Treat a nil exports/imports table as empty and continue searching.
  • Regression coverage: Exercise the nil-table path directly.

Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix likely nil pointer dereference during program construction Prevent nil dereference during package export resolution Sep 24, 2026
@DanielRosenwasser

Copy link
Copy Markdown
Member

Copilot you need a realistic test case that is not just a unit test

Agent-Logs-Url: https://github.com/microsoft/TypeScript/sessions/19c127c7-891c-4c63-9768-a1600188ea6c

Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>

This branch has not been deployed

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

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Likely nil pointer dereference during program construction

2 participants