On some systems, current implementation of CDataStream sometime can read from empty buffers.
Details
Details
- Reviewers
CCulianu freetrader - Group Reviewers
Restricted Project - Commits
- rSTAGING56f32c636ff8: Ensure that CDataStream never reads from empty buffers.
rABC56f32c636ff8: Ensure that CDataStream never reads from empty buffers.
Added test cases. Checked with @CCulianu that the test case indeed trigger the bug on some specific systems and made sure the patch fixes it.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- streamnull
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 549 Build 549: arc lint + arc unit
Event Timeline
Comment Actions
Ok, tested with your new "with arrays" addition.. everything checks out. On my Travis-work-alike system your test case failed, but with the patch to streams.h, your test case passed. Looks great.