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 potential unsoundness in SqliteMallocString #1228

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

thomcc
Copy link
Member

@thomcc thomcc commented Sep 16, 2022

There's a fairly contrived case of UB that was called out in rusqlite in rust-lang/rust#101899. It's easy enough to fix, so here's a fix.

@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Merging #1228 (2478069) into master (5a41ab8) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #1228      +/-   ##
==========================================
- Coverage   77.04%   77.03%   -0.02%     
==========================================
  Files          48       48              
  Lines        6222     6223       +1     
==========================================
  Hits         4794     4794              
- Misses       1428     1429       +1     
Impacted Files Coverage Δ
src/util/sqlite_string.rs 90.00% <0.00%> (-1.14%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@thomcc thomcc merged commit a100adc into rusqlite:master Sep 16, 2022
@thomcc thomcc deleted the size-align branch September 16, 2022 20:38
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

1 participant