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 UBSAN error in the Enumeration CPP API #4357

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Conversation

davisp
Copy link
Contributor

@davisp davisp commented Sep 15, 2023

Apparently one of our many build chains decided that faking a default parameter for a tiledb_datatype_t is undefined behavior, which, fair enough. The fix should be to just use a std::optional instead.


TYPE: CPP_API
DESC: Fix UBSAN error in the Enumeration CPP API

TYPE: CPP_API
DESC: 2.17.1 Release notes: breaking change from 2.17.0 in experimental C++ API, in order to fix UB.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #34255: Fix UBSAN warning in builds of TileDB-R.

@davisp davisp force-pushed the pd/sc-34255/fix-ubsan-error branch from bc95185 to e25c393 Compare September 15, 2023 18:10
Apparently one of our many build chains decided that faking a default
parameter for a `tiledb_datatype_t` is undefined behavior, which, fair
enough. The fix should be to just use a std::optional instead.
@davisp davisp force-pushed the pd/sc-34255/fix-ubsan-error branch from e25c393 to 43200cf Compare September 15, 2023 18:12
Copy link
Contributor

@eric-hughes-tiledb eric-hughes-tiledb left a comment

Choose a reason for hiding this comment

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

LGTM

@ihnorton ihnorton merged commit 02e6408 into dev Sep 18, 2023
54 checks passed
@ihnorton ihnorton deleted the pd/sc-34255/fix-ubsan-error branch September 18, 2023 13:53
github-actions bot pushed a commit that referenced this pull request Sep 18, 2023
Apparently one of our many build chains decided that faking a default parameter for a `tiledb_datatype_t` is undefined behavior, which, fair enough. The fix should be to just use a std::optional instead.

---
TYPE: BUG
DESC: Fix UBSAN error in the Enumeration CPP API

(cherry picked from commit 02e6408)
ihnorton pushed a commit that referenced this pull request Sep 20, 2023
Apparently one of our many build chains decided that faking a default parameter for a `tiledb_datatype_t` is undefined behavior, which, fair enough. The fix should be to just use a std::optional instead.

---
TYPE: BUG
DESC: Fix UBSAN error in the Enumeration CPP API

(cherry picked from commit 02e6408)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants