summaryrefslogtreecommitdiff
path: root/contrib/apps/httpserver
diff options
context:
space:
mode:
authorAristo Chen <[email protected]>2026-08-08 00:44:34 +0000
committerTom Rini <[email protected]>2026-08-20 09:59:25 -0600
commitbf219c69ec5bc5ed7838a5452cff2a690a10f9f3 (patch)
tree8a6f82639be40429e3d7dd5b824227fb2444f9a3 /contrib/apps/httpserver
parent58b49a7b54bae6cf524d1c0f17a9285287b91947 (diff)
test: cmd: Add gzwrite chunk boundary regression test
Add a deterministic regression test for the gzwrite() case where a decompression input chunk is exhausted at exactly the same time as the write buffer fills up. Build a gzip file by hand from two 1 KiB stored deflate blocks and pick a chunk size that covers exactly the first block header plus its payload, so that with a 1 KiB write buffer the first input chunk runs out precisely when the write buffer is full. Unlike the existing random data test, which only hits this corner case for rare byte patterns (about 1 percent of runs on sandbox64), this test fails 20 out of 20 runs without the preceding gunzip fix: Error: inflate() returned -5 and passed 100 out of 100 runs with it. Signed-off-by: Aristo Chen <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'contrib/apps/httpserver')
0 files changed, 0 insertions, 0 deletions