No error return for too small buffers in XMLUtil::ToString
まだ誰も着手していません。
評価
この issue はまだ評価されていません。
説明
I did some code analysis for the XMLUtil class of the code.
There are some findings regarding the usage of ToStr functions.
The user of the ToStr methods has to make an assumption of the buffersize
in which the variable should be rendered.
If the buffersize will be too small the used snprintf will cut the
generated string to the given buffersize (good)
but will report no error if a truncation of the generated string appears (bad)
So there will be some workarounds for that case.
- return the result of snprintf to the user of that method (minimum)
- return the result with the required length of buffer to the user (somehow better)
- use e.g. the stream functionality of c++ to get rid of the size assumptions at all
(with the drawback of internal memory allocations and maybe a performance drawback)
I would like to contribute one of the topics above (but only if there will be an acceptance for
these proposals)
- 主要言語
- C++
- スター
- 5.8k
- フォーク
- 2k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
leethomason/tinyxml2 のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
leethomason/tinyxml2#1097 ·
-
New release requestオープン
leethomason/tinyxml2#1087 · コメント 4 件 ·
-
leethomason/tinyxml2#1085 · コメント 1 件 ·
-
New relase requestオープン
leethomason/tinyxml2#1084 ·
-
leethomason/tinyxml2#1083 ·
leethomason/tinyxml2 の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
rr-debugger/rr#4111 ·
メンテナーはふだん 3 日以内に返信
-
Multithreaded MolStandardize *InPlace functions hang with numThreads=0 and race with negative numThreads対応中かも @Ardx19 が今日担当しました。 オープンbug
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 2 日以内に返信
-
[Bug] - Out-of-bounds shared-memory write in cutlass linear kernel (official qwen3 demo crashes)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
mirage-project/mirage#794 ·
メンテナーはふだん 3 日以内に返信
-
WiFiMulti::addAP rejects valid 32-byte SSIDs対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンStatus: Awaiting triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
espressif/arduino-esp32#12984 ·
メンテナーはふだん 1 日以内に返信