Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialize null terminator of new printbuf #239

Merged
merged 1 commit into from Jul 16, 2016

Commits on Jul 16, 2016

  1. initialize null terminator of new printbuf

    It's possible (e.g. by using json_object_from_file() on an empty file)
    to get json-c to try to use a printbuf that has never had anything
    written to it. Before this change, it could access a string that
    should be length zero, but was never initialized, and could
    theoretically have an unexpected string.
    ploxiln committed Jul 16, 2016
    Copy the full SHA
    868b20c View commit details
    Browse the repository at this point in the history