Numeric comparison and arithmetic are 32-bit int only and overflow
まだ誰も着手していません。
評価
調査の方向性
Start in src/script_executor.cpp at the comparison code around L666–L668 and the INC/DEC/ADD code around L337, L344, and L351; trace how each converts numeric values. Reproduce the reported cases and check the project’s existing tests before choosing how to represent and compare numbers. Done means decimal comparison works and the reported overflow cases no longer produce incorrect results or undefined behavior.
索引モデルが issue の本文から書いたものです。
説明
Summary
The docs state numeric values compare numerically, but comparison and INC/DEC/ADD use toInt(): decimals and values above INT_MAX fall back to string comparison, and INC on INT_MAX overflows (signed-overflow UB).
Location
- File(s):
src/script_executor.cpp - Line(s) / function(s): comparison L666–L668; INC/DEC/ADD L337, L344, L351
Category
functional
Severity
low
Reproduction / Evidence
Reproducible at runtime: "9.5" < 10 is false; INC on 2147483647 gives -2147483648; SET $M 3000000000 / INC $M gives 1.
Expected Behavior
64-bit or decimal arithmetic with overflow detection; numeric comparison for decimals.
Actual Behavior
As above.
Root Cause
int conversions throughout.
- 主要言語
- 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 日以内に返信