Memory stomp due to libdeflate_gdeflate_compress_bound returning too small of a value and libdeflate_gdeflate_compress ignoring the output limit
まだ誰も着手していません。
評価
調査の方向性
まず、添付された gdeflatecrash.bin を使用して、デバッグモードの GDeflateDemo でクラッシュを再現し、その後 libdeflate_gdeflate_compress_bound と libdeflate_gdeflate_compress を調査してください。今回の再現において、報告された bound が十分であり、圧縮処理が指定された出力上限を超えて書き込まなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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 .
- 主要言語
- C++
- スター
- 897
- フォーク
- 111
- 平均マージ
- 13時間 58分
- マージ済み PR(30日)
- 12
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/DirectStorage のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
microsoft/DirectStorage#137 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/DirectStorage#101 ·
-
can't compile? オープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
microsoft/DirectStorage#58 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
microsoft/DirectStorage#56 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoft/DirectStorage#52 · コメント 7 件 ·
microsoft/DirectStorage の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
brave/brave-browser#59300 ·
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main オープンai_reviewed
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ydb-platform/ydb#53974 · コメント 3 件 ·