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
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
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.