mallocs with size overflow checking
| 1045 | #if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR) |
| 1046 | // mallocs with size overflow checking |
| 1047 | static void *stbi__malloc_mad2(int a, int b, int add) |
| 1048 | { |
| 1049 | if (!stbi__mad2sizes_valid(a, b, add)) return NULL; |
| 1050 | return stbi__malloc(a*b + add); |
| 1051 | } |
| 1052 | #endif |
| 1053 | |
| 1054 | static void *stbi__malloc_mad3(int a, int b, int c, int add) |
no test coverage detected