| 1059 | |
| 1060 | #if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM) |
| 1061 | static void *stbi__malloc_mad4(int a, int b, int c, int d, int add) |
| 1062 | { |
| 1063 | if (!stbi__mad4sizes_valid(a, b, c, d, add)) return NULL; |
| 1064 | return stbi__malloc(a*b*c*d + add); |
| 1065 | } |
| 1066 | #endif |
| 1067 | |
| 1068 | // returns 1 if the sum of two signed ints is valid (between -2^31 and 2^31-1 inclusive), 0 on overflow. |
no test coverage detected