| 1062 | // returns 1 if "a*b*c*d + add" has no negative terms/factors and doesn't overflow |
| 1063 | #if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM) |
| 1064 | static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add) { |
| 1065 | return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a * b, c) && |
| 1066 | stbi__mul2sizes_valid(a * b * c, d) && |
| 1067 | stbi__addsizes_valid(a * b * c * d, add); |
| 1068 | } |
| 1069 | #endif |
| 1070 | |
| 1071 | #if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || \ |
no test coverage detected