-
Notifications
You must be signed in to change notification settings - Fork 58
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
Coverity issue #228
Comments
That could only happen with an invalid |
In fact, the save code will return I can rearrange it slightly which will hopefully suppress Coverity's false positive. |
This doesn't change behaviour; it still returns `CYAML_ERR_INVALID_DATA_SIZE` if the schema's `data_size` is invalid. Closes #228
Thank you @tlsa ! |
This doesn't change behaviour; it still returns `CYAML_ERR_INVALID_DATA_SIZE` if the schema's `data_size` is invalid. Closes #228
Coverity complains that inside cyaml_sign_pad, for size = 0 case, the padding becomes ((8-0) * 8) = 64 and left shifting of 1UL by more than 63 bits is undefined behavior. Any idea what is the use case of size = 0 ? Could you please clarify what should be the resolution for this ?
The text was updated successfully, but these errors were encountered: