No protection against overflow/underflow when setting values
まだ誰も着手していません。
評価
調査の方向性
この issue にはファイル、テスト、エントリーポイントが記載されていません。まず builder.longOut の例を再現し、次に、一覧にある数値、string、waveform の各ケースで値がどのように EPICS に渡されるかを追跡してください。関連する範囲外または過大なサイズの値が警告またはエラーで検証され、調査したケースをカバーできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
pythonSoftIOC provides no protections against overflowing data type limits.
The most obvious example of this is longIn/Out, due to the unbounded size of Python3's int type. No warning or error is raised if you attempt to do the following:
builder.longOut("TEST", initial_value=9999999999999)
[...]$ caget TEST
PREFIX:TEST 1316134911
The value is truncated, but no warning is given.
This issue should also investigate all other types, and consider adding validation to the incoming values before passing to EPICS.
Possibilities include ( but are not limited to):
- Huge floating point values
- Tiny floating point values
- Strings that may be silently truncated, especially when unicode is in use
- Waveforms when the value being set is longer than the NELM of the record
- 主要言語
- Python
- スター
- 47
- フォーク
- 15
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DiamondLightSource/pythonSoftIOC のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
-
enhancement
DiamondLightSource/pythonSoftIOC#121 · コメント 2 件 · 担当者 1 名 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DiamondLightSource/pythonSoftIOC の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
canonical/paas-charm#368 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
StevenBlack/hosts#3256 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
qualcomm/qai-appbuilder#275 ·