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

Avoid segfaulting on null database entries #15

Merged
merged 1 commit into from Jun 15, 2020

Conversation

skitt
Copy link
Contributor

@skitt skitt commented Aug 7, 2017

This was taken from
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=492414

Signed-off-by: Stephen Kitt steve@sk2.org


This change is Reviewable

@skitt skitt force-pushed the fix-segfaults branch 2 times, most recently from 13d2b52 to 91f74b3 Compare August 7, 2017 15:37
@bb010g
Copy link
Member

bb010g commented Aug 7, 2017

I think I'll fix this up later today with an atoi_or function instead of a bunch of boilerplate.


Review status: 0 of 1 files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@steils
Copy link

steils commented Jun 15, 2020

@bb010g Hi. Is this bug fixed in 0.6.0? At least I cannot reproduce it. I am preparing a package in Gentoo, so I'm wondering if I should add this patch.

@skitt
Copy link
Contributor Author

skitt commented Jun 15, 2020

@bb010g Hi. Is this bug fixed in 0.6.0? At least I cannot reproduce it. I am preparing a package in Gentoo, so I'm wondering if I should add this patch.

Yes, it’s still present, but it only happens on upgrades from very old releases. I’ve updated the PR to address the comments, using the patch I applied to the latest Debian package.

This was taken from Julien Cristau's patch in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=492414 and updated
to use an atoi_or function based on review feedback.

Signed-off-by: Stephen Kitt <steve@sk2.org>
@Nikekson Nikekson merged commit f7ca787 into xmoto:master Jun 15, 2020
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

4 participants