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 Invalid input causes SegFault #14

Merged
merged 4 commits into from
May 6, 2020
Merged

Fix Invalid input causes SegFault #14

merged 4 commits into from
May 6, 2020

Conversation

lambacck
Copy link

Closes #13

Fixing the segfault also revealed problems with invalid input that didn't raise exceptions. This increases coverage for invalid input cases. This may need to have a more significant version bump associated with it since it raises ValueError more often.

@lambacck lambacck requested a review from sigmavirus24 April 27, 2020 14:44
{
char *p = strchr(s, c), *q;
char *end = s + length;
debug_print( "looging for p: s[%c, %p]\n", *s, s);

Choose a reason for hiding this comment

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

looging?

@lambacck lambacck force-pushed the test-invalid-input branch from 8591f63 to a47bf3d Compare April 27, 2020 16:16
@lambacck lambacck force-pushed the test-invalid-input branch from 6752d5a to fd1c958 Compare April 27, 2020 16:53
@lambacck
Copy link
Author

The last test failure I fixed makes me feel like we need way more test cases to be sure it's all working correctly.

@sigmavirus24
Copy link

Hence #15

@lambacck lambacck merged commit e37ba77 into master May 6, 2020
@lambacck lambacck deleted the test-invalid-input branch May 6, 2020 17:12
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.

Segfault on invalid input to loads
2 participants