-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 CID :207984] Sizeof not portable in drivers/counter/counter_handlers.c #22431
Labels
bug
The issue is a bug, or the PR is fixing a bug
Coverity
A Coverity detected issue or its fix
priority: low
Low impact/importance bug
Comments
zephyrbot
added
bug
The issue is a bug, or the PR is fixing a bug
Coverity
A Coverity detected issue or its fix
priority: low
Low impact/importance bug
labels
Feb 3, 2020
I am not sure why this was flagged by coverity? Can somebody please explain? |
also have no idea. |
|
ceolin
pushed a commit
to ceolin/zephyr
that referenced
this issue
Mar 23, 2020
z_vrfy_counter_get_value should check the size of memory pointed to ticks and not the size of the pointer. Fixes: zephyrproject-rtos#22431 Coverity CID :207984 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
Fixed by: #23698 |
ioannisg
pushed a commit
that referenced
this issue
Mar 25, 2020
z_vrfy_counter_get_value should check the size of memory pointed to ticks and not the size of the pointer. Fixes: #22431 Coverity CID :207984 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
hakehuang
pushed a commit
to hakehuang/zephyr
that referenced
this issue
Apr 30, 2020
z_vrfy_counter_get_value should check the size of memory pointed to ticks and not the size of the pointer. Fixes: zephyrproject-rtos#22431 Coverity CID :207984 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
The issue is a bug, or the PR is fixing a bug
Coverity
A Coverity detected issue or its fix
priority: low
Low impact/importance bug
Static code scan issues found in file:
https://github.com/zephyrproject-rtos/zephyr/tree/a3e89e84a801d9bc048b0ee2177f0fb11d1a925a/drivers/counter/counter_handlers.c#L71
Category: Code maintainability issues
Function:
z_vrfy_counter_get_value
Component: Drivers
CID: 207984
Details:
Please fix or provide comments in coverity using the link:
https://scan9.coverity.com/reports.htm#v32951/p12996.
Note: This issue was created automatically. Priority was set based on classification
of the file affected and the impact field in coverity. Assignees were set using the CODEOWNERS file.
The text was updated successfully, but these errors were encountered: