Memory stomp due to libdeflate_gdeflate_compress_bound returning too small of a value and libdeflate_gdeflate_compress ignoring the output limit
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the crash with GDeflateDemo in debug mode using the attached gdeflatecrash.bin, then inspect libdeflate_gdeflate_compress_bound and libdeflate_gdeflate_compress. Done means the reported bound is sufficient and compression no longer writes beyond the supplied output limit for this reproduction.
Written by the indexing model from the issue text.
Description
While running some tests, GDeflateDemo crashed due to stack corruption. Upon testing, it turns out that this was due to libdeflate_gdeflate_compress writing more data than libdeflate_gdeflate_compress_bound indicated was the upper limit.
Reproduction steps:
- Extract "gdeflatecrash.bin" from the attached file
- Compile GDeflateDemo in debug mode so stack corruption checks are enabled
- Run
GDeflateDemo /compress gdeflatecrash.bin .
- Dominant language
- C++
- Stars
- 897
- Forks
- 111
- Avg merge
- 13h 58m
- Merged PRs (30d)
- 12
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/DirectStorage
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/DirectStorage#137 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/DirectStorage#101 ·
-
can't compile? Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
microsoft/DirectStorage#58 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
microsoft/DirectStorage#56 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
microsoft/DirectStorage#52 · 7 comments ·
All issues in microsoft/DirectStorage
Similar issues
-
AuTest Bug Tests
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/trafficserver#13714 ·
-
bug build
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
facebookincubator/velox#19143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tenstorrent/tt-metal#57393 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
objectionary/eo-graphs#74 ·