Assertions with cbor_assert(cond)
まだ誰も着手していません。
評価
調査の方向性
compilersupport_p.h の 64 行目にある cbor_assert(cond) から始め、その後、その使用箇所と 6 件のコメントによる議論を確認して、意図されたエラー伝播の動作を理解してください。assertion と返されるエラーのセマンティクスについて合意に達し、選択した動作を一貫して適用し、ライブラリの assertion が fuzzing のクラッシュを引き起こさない状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
I was wondering if there is a particular reason that the macro cbor_assert(cond) defined on line 64 in compilersupport_p.h is used instead of using a macro such as:
# define MACRO do { if (!(cond)) return SomeCborError; } while (0)
The drawback of having an assertion from my point-of-view as someone who uses the library, is the fact that when the assertion fails, the program crashes. This is not ideal when I am fuzz testing my program since it will prevent me from knowing if it is my program that is causing the crash or the assertion from tinycbor.
- 主要言語
- C
- スター
- 632
- フォーク
- 222
- 平均マージ
- 1日 25分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
intel/tinycbor のほかの issue
-
CborValidateTagUse rejects valid tag 1 (epoch) with a floating-point value, and restricts tags 21-23 too much対応中かも @thiagomacieira が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
似ている issue
-
systemd-binfmt exits 1 when the binfmt_misc flush fails, even though all rules register successfully対応中かも @turbcool が今日担当しました。 オープンbinfmt
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
follow: logical decoding messages (wal2json "M") stop apply; on main follow then reports endpos reached with changes missing対応中かも @vgul が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
xmake-io/xmake#7822 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
libsdl-org/SDL#16444 ·
メンテナーはふだん 1 日以内に返信
-
bug Component component: net
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
RT-Thread/rt-thread#11852 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信