You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 181ac51
Browse filesBrowse the repository at this point in the historyBrowse files
reject non-integer JSON numbers where an integer is expected (#1240)
nlohmann's get<int>() converts with a plain static_cast, so JSON numbers
read as integers were truncated (2.5 -> 2), wrapped (5000000000, or a
Groot2 hook uid + 65536 landing on another node) or cast out of range
(1e300, undefined behavior). Read them through the internal helper
BT::details::JsonToInteger<T>, which rejects lossy values with a
RuntimeError and accepts in-range floats with no fractional part (100.0),
like Any::cast<T>(). Applied to JSON blackboard import, json: vector<int>
ports, substitution rule async_delay, and the Groot2 hook requests.
Behavior change: int-vector elements, async_delay and Groot2 hook fields
that are fractional, NaN, boolean or out of range now throw instead of
being silently truncated or wrapped.
0 commit comments