]> git.ipfire.org Git - thirdparty/json-c.git/commit
Set error codes for truncating int conversions 882/head
authorSimon Resch <simon.resch@code-intelligence.de>
Tue, 26 Nov 2024 19:42:29 +0000 (20:42 +0100)
committerSimon Resch <simon.resch@code-intelligence.de>
Wed, 27 Nov 2024 06:17:20 +0000 (07:17 +0100)
commit0c3588330a3edbf287e7f969231b8bbed2ed6375
treefb10620db1b4c98ef1db80d158187f61674f9b6c
parent8c13801f2c810bdbfacf49c830f060a80e86aa26
Set error codes for truncating int conversions

json_object_get_int/int64/uint64() now sets errno to ERANGE when the source value
can't be represented in the target type.
json_object.c
json_object.h
tests/test_int_get.c