| 140 | */ |
| 141 | |
| 142 | int |
| 143 | xmlStrcmp(const xmlChar *str1, const xmlChar *str2) { |
| 144 | if (str1 == str2) return(0); |
| 145 | if (str1 == NULL) return(-1); |
| 146 | if (str2 == NULL) return(1); |
| 147 | #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION |
| 148 | return(strcmp((const char *)str1, (const char *)str2)); |
| 149 | #else |
| 150 | do { |
| 151 | int tmp = *str1++ - *str2; |
| 152 | if (tmp != 0) return(tmp); |
| 153 | } while (*str2++ != 0); |
| 154 | return 0; |
| 155 | #endif |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * xmlStrEqual: |
no outgoing calls
no test coverage detected