New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON-RPC-2.0 API で NaN と Inf を扱う手段を提供する #54
Comments
現時点で " そこで、本チケットではこの項のみで |
理由:
|
|
想定される問題: ユーザーが NaN Inf を不正に扱うと G4 が落ちるであろう事。 |
想定される問題については根本的にユーザー入力の validation ではなく内部データ生成系のデータ変換に安全策を噛ませるのがいいだろう。 |
内部データ生成系とGeoObjectのLocation, Rotation制御系に |
この変更は 4.0.0.13 へ取り込む。 |
JSON では規格上
NaN
やInf
を扱えない。特にNaN
は巨大な数を与えて擬似的に扱えないこともないInf
と異なり扱う手段が無い。 Javascript においては"NaN"
や"Inf"
のように文字列で与える方法が一般に許容されている。そこで G4 でも "数値が期待される場所" では
"NaN"
によるNaN
値と"+Inf"
,"-Inf"
を扱えるよう機能追加したいと思う。The text was updated successfully, but these errors were encountered: