BIND 10 #2992: JSON to number conversion does not check errno on C++
BIND 10 Development
do-not-reply at isc.org
Tue Jun 11 10:54:40 UTC 2013
#2992: JSON to number conversion does not check errno on C++
-------------------------------------+-------------------------------------
Reporter: fujiwara | Owner:
Type: defect | Status: new
Priority: medium | Milestone: Next-
Component: Unclassified | Sprint-Proposed
Keywords: | Resolution:
Sensitive: 0 | CVSS Scoring:
Sub-Project: Core | Defect Severity: N/A
Estimated Difficulty: 2 | Feature Depending on Ticket:
Total Hours: 0 | Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
Comment (by fujiwara):
Current code does not catch floating underflow.
I made trac2992 branch and pushed my fix.
[2992] Added errno check to fromStringstreamNumber()
Now support LONG_MAX, LONG_MIN and floating underflow detection
[2992] Added integer conversion tests (LONG_MAX, -LONG_MAX, LONG_MIN)
Added floating underflow test
Does it make sense ?
--
Ticket URL: <http://bind10.isc.org/ticket/2992#comment:4>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list