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 segfault converting a null pg_sys::Datum to a String #1853

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

eeeebbbbrrrr
Copy link
Contributor

@eeeebbbbrrrr eeeebbbbrrrr commented Sep 11, 2024

This closes #1852, which reports a segfault when converting an honestly null Datum into a String.

Looks like this was introduced in beb7901 and we didn't have test coverage around this specific case.

I quickly audited src/datum/from.rs and everything else there looks fine.

Copy link
Member

@workingjubilee workingjubilee left a comment

Choose a reason for hiding this comment

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

"Fix issue #12090934509" is not an appropriate title.

@eeeebbbbrrrr
Copy link
Contributor Author

"Fix issue #12090934509" is not an appropriate title.

that's why I used the actual issue number!

I'll fix it and the description once I see that CI passes. don't worry. ;)

@eeeebbbbrrrr eeeebbbbrrrr changed the title fix issue #1852 fix segfault converting a null pg_sys::Datum to a String Sep 11, 2024
@eeeebbbbrrrr eeeebbbbrrrr merged commit d13cd30 into pgcentralfoundation:develop Sep 11, 2024
14 checks passed
daamien pushed a commit to daamien/pgrx that referenced this pull request Sep 12, 2024
…alfoundation#1853)

Looks like this was introduced in beb7901 and we didn't have test coverage around this specific case.
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.

String::from_datum() of a null value led to a segmentation fault
2 participants