Skip to content

fix(pkgmanager): prevent nil pointer dereference on malformed boss.json (issues #177, #178)#250

Open
isaquepinheiro wants to merge 1 commit into
HashLoad:mainfrom
isaquepinheiro:bugfix/issue-177-safe-package-load
Open

fix(pkgmanager): prevent nil pointer dereference on malformed boss.json (issues #177, #178)#250
isaquepinheiro wants to merge 1 commit into
HashLoad:mainfrom
isaquepinheiro:bugfix/issue-177-safe-package-load

Conversation

@isaquepinheiro

Copy link
Copy Markdown
Contributor

This PR adds safety checks to the package manager to prevent nil pointer dereference panics when loading corrupted or invalid boss.json package descriptors.

@isaquepinheiro isaquepinheiro force-pushed the bugfix/issue-177-safe-package-load branch from 0483354 to 8a32be9 Compare July 4, 2026 13:53
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@0f2a917). Learn more about missing BASE report.

Files with missing lines Patch % Lines
utils/librarypath/librarypath.go 0.00% 7 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #250   +/-   ##
=======================================
  Coverage        ?   25.60%           
=======================================
  Files           ?       82           
  Lines           ?     3827           
  Branches        ?        0           
=======================================
  Hits            ?      980           
  Misses          ?     2773           
  Partials        ?       74           
Flag Coverage Δ
unittests 25.60% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants