We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To reproduce, I built the code 'examples' with the following command on my mac:
cd examples clang test_json.c ../json.c -I ../ -fsanitize=undefined
Then when I run:
./a.out ../tests/valid-0000.json
I get this runtime warning:
../json.c:437:34: runtime error: applying non-zero offset 8 to null pointer
It seems to work if I replace in the code the line:
json_car **char = (json_char **) &top->u.object.values;
by:
intptr_t *chars = (intptr_t *) &top->u.object.values;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To reproduce, I built the code 'examples' with the following command on my mac:
Then when I run:
I get this runtime warning:
It seems to work if I replace in the code the line:
by:
The text was updated successfully, but these errors were encountered: