GitHub user rectang opened a pull request:

    https://github.com/apache/lucy-clownfish/pull/64

    CLOWNFISH-84 guarantee null-terminated arg to strtod

    Inside Str_To_F64 we use strtod, which requires a nul-terminated C
    string argument.  Now that Clownfish Strings consistently lack
    nul-termination, we need to copy content into a nul-terminated buffer
    and pass that to strtod.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rectang/lucy-clownfish 
CLOWNFISH-84-nul-term-strtod

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucy-clownfish/pull/64.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #64
    
----
commit 4dab61a5717135c4f60fc6d063e21870a453bb1f
Author: Marvin Humphrey <[email protected]>
Date:   2016-03-14T23:05:23Z

    Ensure nul-terminated arg to strtod.
    
    Inside Str_To_F64 we use strtod, which requires a nul-terminated C
    string argument.  Now that Clownfish Strings consistently lack
    nul-termination, we need to copy content into a nul-terminated buffer
    and pass that to strtod.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to