test_hexdump: Improve test coverage
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | test_hexdump: Change rowsize and groupsize to size_tlib/ | +16 | 1 reply | |
| 2/8 | test_hexdump: Create test output data from the binary input data bufferlib/ | +15 | 4 replies | |
| 3/8 | test_hexdump: Use longer variable nameslib/ | +36 | 0 replies | |
| 4/8 | test_hexdump: Check for buffer overrun of sample output bufferlib/ | +8 | 2 replies | |
| 5/8 | test_hexdump: Fix sample output if zero bytes requestedlib/ | +6 | 2 replies | |
| 6/8 | test_hexdump: If a test fails print all the parameterslib/ | +4 | 0 replies | |
| 7/8 | test_hexdump: Run fixed not random testslib/ | +32 | 0 replies | |
| 8/8 | test_hexdump: Test all 256 byte valueslib/ | +32 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH next 0/8] test_hexdump: Improve test coverage
It was suggested that I add some addition tests for hex_dump_to_buffer(). This required reworking the test code so that could verify arbitrary data.
16 of the tests (those with zero len and bufsize) fail on the current kernel (the return value should be zero but is ascii ? 3 * rowsize : -1)
There are now 2000 tests that include more buffer overflow conditions and all 256 bytes values.
David Laight (8):
Change rowsize and groupsize to size_t
Create test output data from the binary input data buffer Use longer variable names
Check for buffer overrun of sample output buffer Fix sample output if zero bytes requested
If a test fails print all the parameters
Run fixed not random tests
Test all 256 byte values
lib/test_hexdump.c | 256 ++++++++++++++++++++------------------------- 1 file changed, 113 insertions(+), 143 deletions(-)
Signature · 1 line
2.39.5