-
-
Notifications
You must be signed in to change notification settings - Fork 261
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 with empty numrange
during from_datum()
#1918
Merged
eeeebbbbrrrr
merged 5 commits into
pgcentralfoundation:develop
from
eeeebbbbrrrr:segfault-on-empty-numeric-range
Oct 14, 2024
Merged
fix segfault with empty numrange
during from_datum()
#1918
eeeebbbbrrrr
merged 5 commits into
pgcentralfoundation:develop
from
eeeebbbbrrrr:segfault-on-empty-numeric-range
Oct 14, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
An empty `numrange` such as `'[10.5, 10.5)'::numrange` would lead to a segfault during a `Range<AnyNumeric>::from_datum()`.
rebasedming
approved these changes
Oct 14, 2024
eeeebbbbrrrr
added a commit
that referenced
this pull request
Oct 14, 2024
Welcome to pgrx v0.12.6. This releases fixes a number of bugs, cleans up various parts of the code, adds more Postgres `#include` headers, and other little things. To upgrade, first install cargo-pgrx with `cargo install cargo-pgrx --version 0.12.6 --locked`. Then you can run `cargo pgrx upgrade` in your extension's crate to update its dependencies. ## What's Changed * Removed extra allocation from `IntoDatum for char` by @YohDeadfall in #1887 * Fixed IntoDatum impl for char introduced by #1887 by @YohDeadfall in #1889 * Support refs to unsized SqlTranslatable types by @workingjubilee in #1890 * Nullable is Copy when T is Copy by @workingjubilee in #1884 * Macro based IntoDatum for string types by @YohDeadfall in #1886 * `impl FromDatum for CString` by @workingjubilee in #1896 * Add `BorrowDatum` for unsizing borrows of datums by @workingjubilee in #1891 * Always panic if len of varlena exceeds the maximum by @YohDeadfall in #1894 * Use cstr literal syntax to avoid unsafe and ??? by @workingjubilee in #1898 * Implement UnboxDatum for ItemPointerData by @syvb in #1900 * fix compilation on some CPUs and Windows by @usamoi in #1901 * docs: update generic type name of TableIterator by @SteveLauC in #1905 * Remove Python workaround for Homebrew by @workingjubilee in #1908 * Improved messages for json errors by @YohDeadfall in #1893 * Adds more headers by @aykut-bozkurt in #1910 * docs: align description of GucContext::SuBackend and GucContext::Backend with original PostgreSQL description by @mrl5 in #1909 * docs: update outdated README by @SteveLauC in #1914 * fix compilation on emscripten by @usamoi in #1917 * feat: include 'storage/indexfsm.h' by @SteveLauC in #1912 * refactor: more CStr literals by @SteveLauC in #1911 * fix segfault with empty `numrange` during `from_datum()` by @eeeebbbbrrrr in #1918 ## New Contributors * @mrl5 made their first contribution in #1909 **Full Changelog**: v0.12.5...v0.12.6
usamoi
pushed a commit
to tensorchord/pgrx
that referenced
this pull request
Mar 6, 2025
…undation#1918) An empty `numrange` such as `'[10.5, 10.5)'::numrange` would lead to a segfault during a `Range<AnyNumeric>::from_datum()`. This also hardcodes CI to `runs-on: ubuntu-22.04` due to the upgrade in -latest (actions/runner-images#10636) that I don't have the patience to work out today.
usamoi
pushed a commit
to tensorchord/pgrx
that referenced
this pull request
Mar 6, 2025
Welcome to pgrx v0.12.6. This releases fixes a number of bugs, cleans up various parts of the code, adds more Postgres `#include` headers, and other little things. To upgrade, first install cargo-pgrx with `cargo install cargo-pgrx --version 0.12.6 --locked`. Then you can run `cargo pgrx upgrade` in your extension's crate to update its dependencies. ## What's Changed * Removed extra allocation from `IntoDatum for char` by @YohDeadfall in pgcentralfoundation#1887 * Fixed IntoDatum impl for char introduced by pgcentralfoundation#1887 by @YohDeadfall in pgcentralfoundation#1889 * Support refs to unsized SqlTranslatable types by @workingjubilee in pgcentralfoundation#1890 * Nullable is Copy when T is Copy by @workingjubilee in pgcentralfoundation#1884 * Macro based IntoDatum for string types by @YohDeadfall in pgcentralfoundation#1886 * `impl FromDatum for CString` by @workingjubilee in pgcentralfoundation#1896 * Add `BorrowDatum` for unsizing borrows of datums by @workingjubilee in pgcentralfoundation#1891 * Always panic if len of varlena exceeds the maximum by @YohDeadfall in pgcentralfoundation#1894 * Use cstr literal syntax to avoid unsafe and ??? by @workingjubilee in pgcentralfoundation#1898 * Implement UnboxDatum for ItemPointerData by @syvb in pgcentralfoundation#1900 * fix compilation on some CPUs and Windows by @usamoi in pgcentralfoundation#1901 * docs: update generic type name of TableIterator by @SteveLauC in pgcentralfoundation#1905 * Remove Python workaround for Homebrew by @workingjubilee in pgcentralfoundation#1908 * Improved messages for json errors by @YohDeadfall in pgcentralfoundation#1893 * Adds more headers by @aykut-bozkurt in pgcentralfoundation#1910 * docs: align description of GucContext::SuBackend and GucContext::Backend with original PostgreSQL description by @mrl5 in pgcentralfoundation#1909 * docs: update outdated README by @SteveLauC in pgcentralfoundation#1914 * fix compilation on emscripten by @usamoi in pgcentralfoundation#1917 * feat: include 'storage/indexfsm.h' by @SteveLauC in pgcentralfoundation#1912 * refactor: more CStr literals by @SteveLauC in pgcentralfoundation#1911 * fix segfault with empty `numrange` during `from_datum()` by @eeeebbbbrrrr in pgcentralfoundation#1918 ## New Contributors * @mrl5 made their first contribution in pgcentralfoundation#1909 **Full Changelog**: pgcentralfoundation/pgrx@v0.12.5...v0.12.6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An empty
numrange
such as'[10.5, 10.5)'::numrange
would lead to a segfault during aRange<AnyNumeric>::from_datum()
.This also hardcodes CI to
runs-on: ubuntu-22.04
due to the upgrade in -latest (actions/runner-images#10636) that I don't have the patience to work out today.