(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/unichar.c) |
| |
| 96 | | | int uni_utf8_to_ucs4(const char *input, ARRAY_TYPE(unichars) *output) |
| 97 | | | { |
| 98 | | | unichar_t chr; |
| 99 | | | |
| 100 | | | while (*input != '\0') { |
| 101 | | | if (uni_utf8_get_char(input, &chr) <= 0) { |
Unreachable Call
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 102 | | | |
| 103 | | | return -1; |
| 104 | | | } |
| 105 | | | input += uni_utf8_char_bytes(*input); |
| 106 | | | |
| 107 | | | array_append(output, &chr, 1);
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/array.h |
| |
116 | #define array_append(array, data, count) \ |
117 | array_append_i(&(array)->arr + ARRAY_TYPE_CHECK(array, data), \ |
118 | data, count) |
| |
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/array.h |
| |
47 | # define ARRAY_TYPE_CHECK(array, data) \ |
48 | COMPILE_ERROR_IF_TYPES_NOT_COMPATIBLE( \ |
49 | **(array)->v_modifiable, *data) |
| |
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/macros.h |
| |
158 | # define COMPILE_ERROR_IF_TYPES_NOT_COMPATIBLE(_a, _b) \ |
159 | COMPILE_ERROR_IF_TRUE( \ |
160 | !__builtin_types_compatible_p(typeof(_a), typeof(_b))) |
| |
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/macros.h |
| |
156 | # define COMPILE_ERROR_IF_TRUE(condition) \ |
157 | (sizeof(char[1 - 2 * !!(condition)]) - 1) |
| |
|
| 108 | | | } |
| 109 | | | return 0; |
| 110 | | | } |
| |