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

Static analysis issues JSC 2.1 #110

Closed
2 tasks done
chillfig opened this issue Apr 24, 2024 · 0 comments · Fixed by #113
Closed
2 tasks done

Static analysis issues JSC 2.1 #110

chillfig opened this issue Apr 24, 2024 · 0 comments · Fixed by #113
Assignees
Labels

Comments

@chillfig
Copy link
Contributor

chillfig commented Apr 24, 2024

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
Handful of static analysis issues. This report records the findings from the static analysis to facilitate their tracking.

Source Folder Source Filename Source Line Source Object Disposition
Unsafe Functions        
\apps\lc\fsw\src lc_watch.c 496 memcpy Will Not Fix. Using memcpy to safely copy the float value from LC_MultiType_t to ComparisonValue, preserving bitwise representation.
\apps\lc\fsw\src lc_watch.c 684 memcpy Will Not Fix. Using memcpy to safely copy the float value from LC_MultiType_t to WPFloat, preserving bitwise representation.
\apps\lc\fsw\src lc_watch.c 685 memcpy Will Not Fix. Using memcpy to safely copy the float value from LC_MultiType_t to CompareFloat, preserving bitwise representation.
\apps\lc\fsw\src lc_watch.c 1024 memcpy Will Not Fix. Using memcpy to safely copy the float value from LC_MultiType_t to FloatValue, preserving bitwise representation.
\apps\lc\fsw\src lc_watch.c 1063 memcpy Will Not Fix. Using memcpy to safely copy the uint32 value from LC_MultiType_t to PrintableBits, preserving bitwise representation.
Unchecked Array Index        
\apps\lc\fsw\src lc_cmds.c 251 HKIndex Will Not Fix. HKIndex is derived from TableIndex, ensuring it stays within the bounds of the APResults array.
\apps\lc\fsw\src lc_cmds.c 179 HKIndex Will Not Fix. HKIndex is derived from TableIndex, ensuring it stays within the bounds of the WPResults array.

To Reproduce
N/A. These issues were communicated by JSC.

Expected behavior
Need to resolve these. Should resolve and/or disposition the higher ranked ones at minimum.

Code snips
N/A

System observed on:
N/A

Additional context
N/A

Reporter Info
Imported from JSC 2.1 static analysis

@chillfig chillfig added the bug label Apr 24, 2024
@chillfig chillfig self-assigned this Apr 24, 2024
chillfig pushed a commit to chillfig/LC that referenced this issue Jun 10, 2024
chillfig pushed a commit to chillfig/LC that referenced this issue Jun 14, 2024
dzbaker added a commit that referenced this issue Jun 27, 2024
Fix #110, Adds JSC 2.1 Static Analysis comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant