Fix UB in emplace functions#1160
Conversation
5b8619f to
7266731
Compare
|
An automated preview of the documentation is available at https://1160.json.prtest2.cppalliance.org/libs/json/doc/html/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-05-10 09:37:46 UTC |
Plus some updates to valgrind CI settings.
7266731 to
ab1351a
Compare
|
GCOVR code coverage report https://1160.json.prtest2.cppalliance.org/gcovr/index.html Build time: 2026-05-10 09:54:48 UTC |
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1160 +/- ##
========================================
Coverage 93.90% 93.91%
========================================
Files 91 91
Lines 9256 9262 +6
========================================
+ Hits 8692 8698 +6
Misses 564 564
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
|
|
|
b34e92b to
ed5ab36
Compare
|
|
ed5ab36 to
43eab63
Compare
With enough optimisations emplace functions accessed an object after its lifetime has ended, due to order of evaluation. The fix is to make the correct order correct.
43eab63 to
f299282
Compare
|
|
|
|






Fix #1157