| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review requested:
|
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #63288 +/- ##
==========================================
- Coverage 90.30% 90.29% -0.01%
==========================================
Files 759 759
Lines 247754 247754
Branches 46716 46720 +4
==========================================
- Hits 223724 223719 -5
- Misses 15483 15512 +29
+ Partials 8547 8523 -24
... and 38 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
|
@ndossche Can you please rebase and force push? |
Sorry, something went wrong.
sqlite3_column_text() can return nullptr on failure which was not handled. sqlite3_column_blob() can return nullptr for zero-length BLOBs, which is then passed to memcpy() which is UB. Avoid this by checking for a nullptr. Signed-off-by: ndossche <nora.dossche@ugent.be>
|
Done, CI (so far) is looking okay |
Sorry, something went wrong.
|
Can you add some regression tests? Ones which fail in main, but succeed with the fix? |
Sorry, something went wrong.
Apparently the current test suite can already trigger the "UB blob" problem, but the test runner ignores UBSAN failures, so you never see this as a failure. As for the allocation failure in SQLITE_TEXT, I don't think I can make a reliable reproducer. |
Sorry, something went wrong.
Sorry, something went wrong.
sqlite3_column_text() can return nullptr on failure which was not handled. sqlite3_column_blob() can return nullptr for zero-length BLOBs, which is then passed to memcpy() which is UB. Avoid this by checking for a nullptr. Signed-off-by: ndossche <nora.dossche@ugent.be> PR-URL: #63288 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
sqlite3_column_text() can return nullptr on failure which was not handled. sqlite3_column_blob() can return nullptr for zero-length BLOBs, which is then passed to memcpy() which is UB. Avoid this by checking for a nullptr. Signed-off-by: ndossche <nora.dossche@ugent.be> PR-URL: #63288 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
| Back | FazBrowse Home | New Git URL |
sqlite3_column_text() can return nullptr on failure which was not handled. sqlite3_column_blob() can return nullptr for zero-length BLOBs, which is then passed to memcpy() which is UB. Avoid this by checking for a nullptr.
Note: this was found by a static-dynamic analyser I'm developing.