No error thrown when there is garbage data past end-of-frame
维护者通常 10 天内回复
还没有人认领这个 Issue。
评估
调研方向
使用 zstandard.decompress 和 zstandard.compress 重现带有尾部垃圾数据的示例,然后跟踪解压缩入口点,以了解有效帧之后的字节是如何处理的。完成标准是尾部数据会引发错误,同时有效的压缩帧仍能成功解压缩;添加一个覆盖此行为的回归测试。
由索引模型根据 Issue 内容生成。
描述
On 0.17.0, the following example doesn't throw an error:
>>> zstandard.decompress(zstandard.compress(b"foo") + b"garbage")
b'foo'
Perhaps debatable, but I think an error should always be thrown if there is data past the last valid frame in a stream. Especially after fixing https://github.com/indygreg/python-zstandard/issues/59, I don't think it makes sense to silently ignore the garbage past end-of-frame. Users should be notified if they are constructing invalid streams.
Thanks @thatch for identifying this issue.
- 主要语言
- C
- 星标
- 642
- 派生
- 118
- 平均合并
- 9 天 3 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
indygreg/python-zstandard 的其他 Issue
-
`multi_decompress_to_buffer([])` terminates the process with SIGFPE可能已有人在做 @mikamikasuki 于 18 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
indygreg/python-zstandard#335 ·
维护者通常 10 天内回复
-
Silent data-correctness bug: `readinto()` / `readinto1()` on `stream_reader` return `tell() == 0` after successful reads可能已有人在做 @CAOShurong 于 11 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
indygreg/python-zstandard#295 ·
维护者通常 10 天内回复
-
CFFI backend: crash when ZstdDecompressor instances share a ZstdCompressionDict可能已有人在做 @pylaterreur 于 3 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 45/100
indygreg/python-zstandard#361 ·
维护者通常 10 天内回复
-
Python 3.15 wheels可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 55/100
indygreg/python-zstandard#354 · 2 个 reaction ·
维护者通常 10 天内回复
-
`estimated_compression_context_size()` raises SIGFPE with `enable_ldm=True可能已有人在做 @yousefissa 于 6 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 64/100
indygreg/python-zstandard#345 ·
维护者通常 10 天内回复
查看 indygreg/python-zstandard 的全部 Issue
相似的 Issue
-
logo request
难度 2/5 1-3 小时 新手友好度 77/100
fastfetch-cli/fastfetch#2661 ·
维护者通常 1 天内回复
-
Mark ignored Mac OS partitions RecoveryOSContainer and iBootSystemContainer可能已有人在做 @meven 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
storaged-project/udisks#1559 ·
-
难度 2/5 1-3 小时 新手友好度 71/100
awslabs/aws-checksums#121 ·
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100