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

Fix/clang ubsan #553

Closed
wants to merge 23 commits into from
Closed

Conversation

robiwano
Copy link
Contributor

This simple fix keeps clang -fsanitize=undefined from complaining.

hawicz and others added 23 commits December 7, 2017 18:03
…as an optimizer hint. Also, rename that function from json_object_sizeof().
json_object: Add const size_t json_c_object_sizeof()
This is recommended by the libtool manual.
json_object: Avoid invalid free (and thus a segfault) when ref_count gets < 0
…ro because some custom formats *will* include it (e.g. %.2f).

Also try to accomodate formats to explicitly exclude the decimal (e.g. %.0f).
…d conflicts because some downstream packagers of json-c had already done their own bump to ".so.3" for a much older 0.12 release.
Fix json_object_object_foreach to avoid uninitialized variable warnings
using ANSI C or MSC.
@robiwano
Copy link
Contributor Author

Something went wrong here, just had one little change, not 23 commits....

@robiwano robiwano closed this Mar 11, 2020
@hawicz
Copy link
Member

hawicz commented Mar 11, 2020

Looks like you started from a release branch, and tried to submit a pr to merge back to master. I expect that if you create a new branch from master and cherry-pick your commit 6b368fc over then things will work out better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants