Skip to content

fix nock 9 crashing pier if axis is cell#661

Merged
pkova merged 1 commit intourbit:developfrom
dozreg-toplud:nock9-axis-depth
Jun 24, 2024
Merged

fix nock 9 crashing pier if axis is cell#661
pkova merged 1 commit intourbit:developfrom
dozreg-toplud:nock9-axis-depth

Conversation

@dozreg-toplud
Copy link
Copy Markdown
Contributor

@dozreg-toplud dozreg-toplud commented Jun 20, 2024

Solves #660

Prevents Nock 9 from crashing the pier if the axis argument is a cell. Without the check Vere may call u3qc_cap on a cell, leading to a segfault or an assertion failure:

Assertion '_(u3a_is_atom(b))' failed in pkg/noun/retrieve.c:1011

To reproduce the bug, run in Dojo:

.*(0 [9 [2 2] 0 1])

Is there a way to add a unit test to guard against a downgrade?

@dozreg-toplud dozreg-toplud marked this pull request as ready for review June 20, 2024 20:33
@dozreg-toplud dozreg-toplud requested a review from a team as a code owner June 20, 2024 20:33
@pkova pkova merged commit 36900c5 into urbit:develop Jun 24, 2024
@dozreg-toplud dozreg-toplud deleted the nock9-axis-depth branch June 24, 2024 12:05
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