Numeric arguments parsed with toInt() silently become 0, and the documented EXPECT … AT (r,c) form never matches
まだ誰も着手していません。
評価
調査の方向性
Start with the argument parsing code in src/script_parser.cpp, especially the listed toInt() call sites and the EXPECT coordinate handling. Compare the documented forms and reproduction examples in the issue with how each statement parses its arguments. Done means invalid numbers produce parse errors, documented variables work where expected, and EXPECT accepts parenthesised coordinates consistently.
索引モデルが issue の本文から書いたものです。
説明
Summary
Numeric statement arguments are read with QString::toInt() without checking the result, and variables are not interpolated there. Non-numeric or overflowing values become 0; decimals are truncated.
Location
- File(s):
src/script_parser.cpp - Line(s) / function(s): L280–L296, L428–L432, L444–L448, L508–L518, L533, L567, L679–L681
Category
functional
Severity
medium
Loops and waits silently do nothing, and EXPECT with parenthesised coordinates always times out.
Reproduction / Evidence
Reproducible at runtime:
ADD $X $Nadds 0;REPEAT $Nruns 0 times;EXTRACT … FROM $N 1 LENGTH $Nreturns "".SET $P 1.5stores1;WAIT 2.5waits 2 ms.GLOBAL EXPECT_TIMEOUT 99999999999becomes 0 → next EXPECT times out at once.EXPECT CURSOR AT (1,1)andEXPECT TEXT "ABC" AT (1,1)always time out whileAT 1 1works (MOVE accepts the parenthesised form).- README examples
EXTRACT $line LINE $rowandTYPE $userdo not work.
Expected Behavior
Invalid numbers are parse errors; variables are allowed where documented; (r,c) is accepted consistently.
Actual Behavior
Silent zeros.
Root Cause
toInt() without the ok flag; argument grammar not shared between statements.
- 主要言語
- C++
- スター
- 1
- フォーク
- 2
- 平均マージ
- 1時間 34分
- マージ済み PR(30日)
- 7
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
5250ng/5250script のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
5250ng/5250script#30 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
5250ng/5250script#27 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
5250ng/5250script#25 ·
-
aidByteToKeyword maps 0xF5 to PAGEUP and 0xF4 to PAGEDOWN, so recorded Page Down replays as Page Upオープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
5250ng/5250script#20 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
5250ng/5250script#19 ·
5250ng/5250script の issue をすべて見る
似ている issue
-
Invalid-MissingHash/Commit/NotAC
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
azerothcore/azerothcore-wotlk#28636 ·
メンテナーはふだん 1 日以内に返信
-
(S1 - Need confirmation)
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CleverRaven/Cataclysm-DDA#89829 ·
メンテナーはふだん 1 日以内に返信
-
comp-documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ClickHouse/ClickHouse#136277 ·
メンテナーはふだん 1 日以内に返信
-
Flow Needs: Triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
react/react-native#60447 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信