| 167 | */ |
| 168 | |
| 169 | int |
| 170 | xmlStrEqual(const xmlChar *str1, const xmlChar *str2) { |
| 171 | if (str1 == str2) return(1); |
| 172 | if (str1 == NULL) return(0); |
| 173 | if (str2 == NULL) return(0); |
| 174 | #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION |
| 175 | return(strcmp((const char *)str1, (const char *)str2) == 0); |
| 176 | #else |
| 177 | do { |
| 178 | if (*str1++ != *str2) return(0); |
| 179 | } while (*str2++); |
| 180 | return(1); |
| 181 | #endif |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * xmlStrQEqual: |
no outgoing calls