Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clang static analysis builds should use C runtime directly.
This is a little macro magic to use malloc() directly instead of SDL_malloc(), etc, so static analysis tests that know about the C runtime can function properly, and understand that we are dealing with heap allocations, etc. This changed our static analysis report from 5 outstanding bugs to 30. 5x as many bugs were hidden by SDL_malloc() not being recognized as malloc() by the static analyzer!
- Loading branch information
Showing with 63 additions and 5 deletions.