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

Msr negative samplecnt #19

Closed
wants to merge 2 commits into from

Conversation

pn2200
Copy link
Contributor

@pn2200 pn2200 commented May 23, 2018

Add a test when MSRecord->samplecnt is negative, and check for a negative value in msr_unpack_data, to avoid segfaults or unintentionally large third argument to memcpy.

Add test for negative values of MSRecord->samplecnt, which can
lead to a null pointer dereference in msr_unpack_data() or
an unintentionally large third argument to memcpy.
@chad-earthscope
Copy link
Contributor

Applied fix in dc4f3c5.

I do not want to add a whole program, as included in this PR, to test for this case and therefore did directly merge.

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.

None yet

2 participants