You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucy.apache.org by "Marvin Humphrey (JIRA)" <ji...@apache.org> on 2016/03/14 23:59:33 UTC
[lucy-issues] [jira] [Created] (CLOWNFISH-84) Guarantee nul-terminated arg to
strtod in Str_To_F64
Marvin Humphrey created CLOWNFISH-84:
----------------------------------------
Summary: Guarantee nul-terminated arg to strtod in Str_To_F64
Key: CLOWNFISH-84
URL: https://issues.apache.org/jira/browse/CLOWNFISH-84
Project: Apache Lucy-Clownfish
Issue Type: Bug
Components: Core
Reporter: Marvin Humphrey
Assignee: Marvin Humphrey
As of 0.5.0, Strings consistently lack nul-termination, so usage of `strtod` in `Str_To_F64` needs to be adjusted. The solution is to copy the string content into a nul-terminated buffer.
Long term, a more efficient solution would be to craft our own string-to-double conversion routine and replace `strtod`, but that's a lot of work for little benefit right now.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)