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 ApplicableMethod is called incorrectly #3151

Merged

Conversation

fingolfin
Copy link
Member

This ensures we don't return garbage resp. don't trigger an assertion (in debug builds) when e.g. passing an argument list with 7 or more entries to ApplicableMethod.

Fixes #3116

@coveralls
Copy link

coveralls commented Dec 29, 2018

Coverage Status

Coverage decreased (-0.0002%) to 82.828% when pulling ee1df98 on fingolfin:mh/fix-ApplicableMethod-crash into cf47710 on gap-system:master.

This ensures we don't return garbage resp. don't trigger an
assertion (in debug builds) when e.g. passing an argument list
with 7 or more entries to ApplicableMethod.
@codecov
Copy link

codecov bot commented Dec 29, 2018

Codecov Report

Merging #3151 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3151      +/-   ##
==========================================
- Coverage   83.66%   83.66%   -0.01%     
==========================================
  Files         687      687              
  Lines      336685   336687       +2     
==========================================
+ Hits       281697   281698       +1     
- Misses      54988    54989       +1
Impacted Files Coverage Δ
src/opers.h 100% <100%> (ø) ⬆️
src/opers.c 95.17% <100%> (ø) ⬆️
src/iostream.c 61.59% <0%> (-0.77%) ⬇️
src/streams.c 72.4% <0%> (+0.11%) ⬆️

@fingolfin fingolfin merged commit 4b70218 into gap-system:master Jan 6, 2019
@fingolfin fingolfin deleted the mh/fix-ApplicableMethod-crash branch January 6, 2019 20:01
@PaulaHaehndel PaulaHaehndel added the release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes label Apr 15, 2019
@fingolfin fingolfin changed the title kernel: validate {CHANGED_,SET_,}METHODS_OPERATION args Fix crash when ApplicableMethod is called incorrectly Aug 21, 2019
@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) release notes: added PRs introducing changes that have since been mentioned in the release notes and removed release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Aug 21, 2019
@olexandr-konovalov olexandr-konovalov added this to the GAP 4.11.0 milestone Feb 15, 2020
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: added PRs introducing changes that have since been mentioned in the release notes topic: kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when ApplicableMethod is called incorrectly
5 participants