Page MenuHomePhabricator

test: add ParseUInt8() unit and fuzz test coverage
ClosedPublic

Authored by PiRK on Feb 21 2022, 07:04.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC1d2c8c42a346: test: add ParseUInt8() unit and fuzz test coverage
Summary

Also reuse test string with embedded null char in other tests.

This is a backport of core#21438

Test Plan

ninja check bitcoin-fuzzers

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Feb 21 2022, 07:04
Fabien added inline comments.
src/test/util_tests.cpp
1734 ↗(On Diff #32445)

See comment in D11078

PiRK edited the summary of this revision. (Show Details)

de-duplicate assertion

Fabien requested changes to this revision.Feb 21 2022, 09:22
Fabien added inline comments.
src/test/util_tests.cpp
1730 ↗(On Diff #32450)

You dedup'ed the wrong one

1734 ↗(On Diff #32450)

You wanted this one

This revision now requires changes to proceed.Feb 21 2022, 09:22

undeduplicate the line in test_ParseInt32 and deduplicate the line related to this pr in test_parseUInt8

This revision is now accepted and ready to land.Feb 21 2022, 12:45