Skip to content

nix: Add forgotten null check in AttrCursor::getListOfStrings()#6489

Merged
edolstra merged 2 commits intoNixOS:masterfrom
alexshpilkin:fix-6488
May 5, 2022
Merged

nix: Add forgotten null check in AttrCursor::getListOfStrings()#6489
edolstra merged 2 commits intoNixOS:masterfrom
alexshpilkin:fix-6488

Conversation

@alexshpilkin
Copy link
Member

Fixes #6488.

This is in no way perfect (a test would be nice, for one thing), but to my (inexperienced) eyes it seems to point out the problem, so feel free to either tell me how you’d like this packaged or just take and rewrite it.

Copy link
Member

@thufschmitt thufschmitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

I’ve pushed a quick test (far from ideal, but I’m not sure how we can reliably test something like that without putting in a significant effort which is out of scope here), looks good otherwise 👍

I’ll just wait for the CI to finish and merge (don’t hesitate to ping me if I forget)

@edolstra edolstra merged commit f4102de into NixOS:master May 5, 2022
@Artturin
Copy link
Member

Artturin commented May 6, 2022

another bug that may be related to #6426
#6500

@alexshpilkin alexshpilkin deleted the fix-6488 branch May 6, 2022 22:01
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.

nix build --impure segfault outputsToInstall

4 participants