DiamondLightSource / DiamondLightSource/pythonSoftIOC
No protection against overflow/underflow when setting values
- 主要言語
- Python
- スター
- 46
- フォーク
- 15
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 1
説明
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
コントリビューションガイド
調査の方向性
The issue names no files, tests, or entry points. Start by reproducing the builder.longOut example, then trace how values are passed to EPICS for the listed numeric, string, and waveform cases. Done means the relevant out-of-range or oversized values are validated with a warning or error, with coverage for the cases investigated.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100