BIND 10 #2992: JSON to number conversion does not check errno on C++
BIND 10 Development
do-not-reply at isc.org
Wed Jun 5 12:14:56 UTC 2013
#2992: JSON to number conversion does not check errno on C++
-------------------------------------+-------------------------------------
Reporter: | Owner:
fujiwara | Status: new
Type: | Milestone: New Tasks
defect | Keywords:
Priority: | Sensitive: 0
medium | Sub-Project: Core
Component: | Estimated Difficulty: 0
Unclassified | Total Hours: 0
CVSS Scoring: |
Defect Severity: N/A |
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
In function src/lib/cc/data.cc:fromStringstreamNumber(),
it cannot carry LONG_MAX and -LONG_MAX value because they are treated as
error.
If strtol return value is LONG_MAX or -LONG_MAX, need to check errno
variable. If errno is ERANGE or EINVAL, it is a error.
--
Ticket URL: <https://bind10.isc.org/ticket/2992>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list