mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 07:28:05 +02:00
\[WHY\] The reason for making these changes is to address the defects identified by the Coverity scan. By fixing these defects, we can ensure that any future defects generated by our own code changes can be easily identified and resolved. \[HOW\] To implement the changes/fixes, the following steps were taken: 1. CHECKED_RETURN: All cases were aligned to check the return value. 2. DC.WEAK_CRYPTO: The use of rand() to generate random numbers was replaced with a more secure method using platofrm API. 3. DEADCODE: Useless code that always returned true was removed. 4. DIVIDE_BY_ZERO: A check was added to ensure that the divisor is not zero before performing division. 5. HFA: An unused header was removed. 6. MISSING_BREAK: A break statement was added in switch cases where it was missing. 7. PASS_BY_VALUE: Parameters that were being passed by value and were too big were changed to pass by reference. \[TESTING\] What testings have been done (test IDs and json file): Reviewed-by: Tomson Chang <Tomson.Chang@amd.com> Signed-off-by: Min-Hsuan You <Min-Hsuan.You@amd.com> Acked-by: Chenyu Chen <Chen-Yu.Chen@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32646> |
||
|---|---|---|
| .. | ||
| addrlib | ||
| ci | ||
| common | ||
| compiler | ||
| drm-shim | ||
| llvm | ||
| registers | ||
| vpelib | ||
| vulkan | ||
| meson.build | ||