Can the strtok function be used unsafely here?
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- c
調査の方向性
The question concerns Cellular_ATGetSpecificNextTok in cellular_at_core.c around line 564, where strtok is called on the AT response string after a delimiter check. Read the surrounding tokenizer logic to see how the string pointer and delimiter are handled, and whether strtok's internal state can clash with other callers. Done means a clear answer on whether the call is unsafe and, if so, a proposed fix with a test in the cellular AT test suite.
索引モデルが issue の本文から書いたものです。
説明
cellular_at_core.c:564
func: Cellular_ATGetSpecificNextTok
if( atStatus == CELLULAR_AT_SUCCESS )
{
dataStrlen = ( uint16_t ) strlen( *ppString );
if( ( **ppString ) == ( *pDelimiter ) )
{
**ppString = '\0';
tok = *ppString;
}
else
{
tok = strtok( *ppString, pDelimiter );
}
}
- 主要言語
- C
- スター
- 101
- フォーク
- 73
- 平均マージ
- 28日 19時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
FreeRTOS/FreeRTOS-Cellular-Interface のほかの issue
-
SMS-related commandsオープンfeature request
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
FreeRTOS/FreeRTOS-Cellular-Interface#194 · コメント 1 件 ·
-
cmsis_os2オープンfeature request
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
FreeRTOS/FreeRTOS-Cellular-Interface#191 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
FreeRTOS/FreeRTOS-Cellular-Interface#179 · コメント 3 件 · リアクション 1 件 ·
-
[Feature Request] In-band handling of cellular_comm_interface errors再び着手できるかも @chinglee-iot が 1468 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement feature request
FreeRTOS/FreeRTOS-Cellular-Interface#118 · コメント 1 件 · 担当者 1 名 ·
-
[Feature Request] Secure Sockets Transport Implementation再び着手できるかも @chinglee-iot が 1784 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンfeature request help wanted
FreeRTOS/FreeRTOS-Cellular-Interface#74 · コメント 5 件 · 担当者 1 名 ·
FreeRTOS/FreeRTOS-Cellular-Interface の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 63/100
FreeRTOS/FreeRTOS-Plus-TCP#1395 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
qoretechnologies/qore#8222 ·
メンテナーはふだん 1 日以内に返信
-
c easy first-contributor first-contributors good first issue help wanted up-for-grabs
難易度 1/5 1〜3時間 初心者へのやさしさ 96/100
fork-commit-merge/fork-commit-merge#8696 ·
メンテナーはふだん 1 日以内に返信