diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-02-21 13:23:56 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-02-21 14:10:48 +0100 |
commit | 6b1020ef3e034cbb6e0fa4cd984b181c0dd414ff (patch) | |
tree | 25f21c41a1bfa11c22c124a0b5c1f531bd025bde /bin/rdsquashfs/test/pathtraversal.sqfs | |
parent | 90056de06e274997c9a9f6c3fefa96906b2cd8c2 (diff) |
libio: Add an xfrm stream wrapper test
This basically re-uses the libxfrm pack/unpack tests, but runs
the data through a stream wrapper.
When de-compressing, we have a ridiculously tiny input buffer,
to force the wrapper to snort up the data in several attempts
until the it can decompress something. We read the data byte-by-byte
to force the wraper to internally cache the uncompressed data and
spoon feed it to us. It has to be completely transparent to us that
it internaly decompresses and also reads transparently across
concatenated streams.
When compressing, we only require that the output is smaller than
the input and not equal to it. We also require the wrapper to flush
the wrapped stream when it is flushed. We then test if the compressed
data can be unpacked again.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/rdsquashfs/test/pathtraversal.sqfs')
0 files changed, 0 insertions, 0 deletions