Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when accessing mat[i,j] and mat[i] is unbound #4407

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

fingolfin
Copy link
Member

For a plist-of-plists matrix mat, accessing mat[i,j] crashed if mat[i]
was unbound and i in [1..Length(mat)].

Also, if mat[i,j] is not bound, then it now raises an error instead of
returning nothing.

For a plist-of-plists matrix `mat`, accessing `mat[i,j]` crashed if `mat[i]`
was unbound and i in [1..Length(mat)].

Also, if `mat[i,j]` is not bound, then it now raises an error instead of
returning nothing.
@fingolfin fingolfin added kind: bug Issues describing general bugs, and PRs fixing them kind: bug: crash Issues describing bugs that cause GAP to crash, and PRs fixing them (used for release notes) labels Apr 16, 2021
Copy link
Contributor

@ssiccha ssiccha left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@wilfwilson wilfwilson left a comment

Choose a reason for hiding this comment

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

Ooh, good catch.

@wilfwilson wilfwilson merged commit 9e27226 into gap-system:master Apr 19, 2021
@fingolfin fingolfin deleted the mh/fix-ELM_MAT-crash branch April 19, 2021 19:23
@fingolfin fingolfin changed the title Fix crashes when accessing mat[i,j] and mat[i] is unbound Fix crash when accessing mat[i,j] and mat[i] is unbound Aug 17, 2022
@fingolfin fingolfin added the release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes label Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug: crash Issues describing bugs that cause GAP to crash, and PRs fixing them (used for release notes) kind: bug Issues describing general bugs, and PRs fixing them release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants