| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | static char *eat_ws(CONF *conf, char *p); | - |
| 7 | static char *eat_alpha_numeric(CONF *conf, char *p); | - |
| 8 | static void clear_comments(CONF *conf, char *p); | - |
| 9 | static int str_copy(CONF *conf, char *section, char **to, char *from); | - |
| 10 | static char *scan_quote(CONF *conf, char *p); | - |
| 11 | static char *scan_dquote(CONF *conf, char *p); | - |
| 12 | | - |
| 13 | | - |
| 14 | static CONF *def_create(CONF_METHOD *meth); | - |
| 15 | static int def_init_default(CONF *conf); | - |
| 16 | static int def_init_WIN32(CONF *conf); | - |
| 17 | static int def_destroy(CONF *conf); | - |
| 18 | static int def_destroy_data(CONF *conf); | - |
| 19 | static int def_load(CONF *conf, const char *name, long *eline); | - |
| 20 | static int def_load_bio(CONF *conf, BIO *bp, long *eline); | - |
| 21 | static int def_dump(const CONF *conf, BIO *bp); | - |
| 22 | static int def_is_number(const CONF *conf, char c); | - |
| 23 | static int def_to_int(const CONF *conf, char c); | - |
| 24 | | - |
| 25 | static CONF_METHOD default_method = { | - |
| 26 | .name = "OpenSSL default", | - |
| 27 | .create = def_create, | - |
| 28 | .init = def_init_default, | - |
| 29 | .destroy = def_destroy, | - |
| 30 | .destroy_data = def_destroy_data, | - |
| 31 | .load_bio = def_load_bio, | - |
| 32 | .dump = def_dump, | - |
| 33 | .is_number = def_is_number, | - |
| 34 | .to_int = def_to_int, | - |
| 35 | .load = def_load | - |
| 36 | }; | - |
| 37 | | - |
| 38 | static CONF_METHOD WIN32_method = { | - |
| 39 | "WIN32", | - |
| 40 | def_create, | - |
| 41 | def_init_WIN32, | - |
| 42 | def_destroy, | - |
| 43 | def_destroy_data, | - |
| 44 | def_load_bio, | - |
| 45 | def_dump, | - |
| 46 | def_is_number, | - |
| 47 | def_to_int, | - |
| 48 | def_load | - |
| 49 | }; | - |
| 50 | | - |
| 51 | CONF_METHOD * | - |
| 52 | NCONF_default(void) | - |
| 53 | { | - |
| 54 | returnexecuted 214 times by 2 tests: return &default_method;Executed by:- freenull
- libcrypto.so.44.0.1
&default_method;executed 214 times by 2 tests: return &default_method;Executed by:- freenull
- libcrypto.so.44.0.1
| 214 |
| 55 | } | - |
| 56 | | - |
| 57 | CONF_METHOD * | - |
| 58 | NCONF_WIN32(void) | - |
| 59 | { | - |
| 60 | return never executed: return &WIN32_method; &WIN32_method;never executed: return &WIN32_method; | 0 |
| 61 | } | - |
| 62 | | - |
| 63 | static CONF * | - |
| 64 | def_create(CONF_METHOD *meth) | - |
| 65 | { | - |
| 66 | CONF *ret; | - |
| 67 | | - |
| 68 | ret = malloc(sizeof(CONF) + sizeof(unsigned short *)); | - |
| 69 | if (ret| TRUE | evaluated 213 times by 1 test | | FALSE | never evaluated |
) | 0-213 |
| 70 | if (meth->init(ret) == 0| TRUE | never evaluated | | FALSE | evaluated 213 times by 1 test |
) { | 0-213 |
| 71 | free(ret); | - |
| 72 | ret = | - |
| 73 | ((void *)0) | - |
| 74 | ; | - |
| 75 | } never executed: end of block | 0 |
| 76 | returnexecuted 213 times by 1 test: return ret; ret;executed 213 times by 1 test: return ret; | 213 |
| 77 | } | - |
| 78 | | - |
| 79 | static int | - |
| 80 | def_init_default(CONF *conf) | - |
| 81 | { | - |
| 82 | if (conf == | TRUE | never evaluated | | FALSE | evaluated 214 times by 2 testsEvaluated by:- freenull
- libcrypto.so.44.0.1
|
| 0-214 |
| 83 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 214 times by 2 testsEvaluated by:- freenull
- libcrypto.so.44.0.1
|
| 0-214 |
| 84 | ) | - |
| 85 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 86 | | - |
| 87 | conf->meth = &default_method; | - |
| 88 | conf->meth_data = CONF_type_default; | - |
| 89 | conf->data = | - |
| 90 | ((void *)0) | - |
| 91 | ; | - |
| 92 | | - |
| 93 | returnexecuted 214 times by 2 tests: return 1;Executed by:- freenull
- libcrypto.so.44.0.1
1;executed 214 times by 2 tests: return 1;Executed by:- freenull
- libcrypto.so.44.0.1
| 214 |
| 94 | } | - |
| 95 | | - |
| 96 | static int | - |
| 97 | def_init_WIN32(CONF *conf) | - |
| 98 | { | - |
| 99 | if (conf == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 100 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 101 | ) | - |
| 102 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 103 | | - |
| 104 | conf->meth = &WIN32_method; | - |
| 105 | conf->meth_data = (void *)CONF_type_win32; | - |
| 106 | conf->data = | - |
| 107 | ((void *)0) | - |
| 108 | ; | - |
| 109 | | - |
| 110 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 111 | } | - |
| 112 | | - |
| 113 | static int | - |
| 114 | def_destroy(CONF *conf) | - |
| 115 | { | - |
| 116 | if (def_destroy_data(conf)| TRUE | evaluated 213 times by 1 test | | FALSE | never evaluated |
) { | 0-213 |
| 117 | free(conf); | - |
| 118 | returnexecuted 213 times by 1 test: return 1; 1;executed 213 times by 1 test: return 1; | 213 |
| 119 | } | - |
| 120 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 121 | } | - |
| 122 | | - |
| 123 | static int | - |
| 124 | def_destroy_data(CONF *conf) | - |
| 125 | { | - |
| 126 | if (conf == | TRUE | never evaluated | | FALSE | evaluated 214 times by 2 testsEvaluated by:- freenull
- libcrypto.so.44.0.1
|
| 0-214 |
| 127 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 214 times by 2 testsEvaluated by:- freenull
- libcrypto.so.44.0.1
|
| 0-214 |
| 128 | ) | - |
| 129 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 130 | _CONF_free_data(conf); | - |
| 131 | returnexecuted 214 times by 2 tests: return 1;Executed by:- freenull
- libcrypto.so.44.0.1
1;executed 214 times by 2 tests: return 1;Executed by:- freenull
- libcrypto.so.44.0.1
| 214 |
| 132 | } | - |
| 133 | | - |
| 134 | static int | - |
| 135 | def_load(CONF *conf, const char *name, long *line) | - |
| 136 | { | - |
| 137 | int ret; | - |
| 138 | BIO *in = | - |
| 139 | ((void *)0) | - |
| 140 | ; | - |
| 141 | | - |
| 142 | in = BIO_new_file(name, "rb"); | - |
| 143 | if (in == | TRUE | evaluated 211 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-211 |
| 144 | ((void *)0)| TRUE | evaluated 211 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-211 |
| 145 | ) { | - |
| 146 | if ((| TRUE | evaluated 211 times by 1 test | | FALSE | never evaluated |
int)((ERR_peek_last_error())&0xfffL) == 128| TRUE | evaluated 211 times by 1 test | | FALSE | never evaluated |
) | 0-211 |
| 147 | ERR_put_error(14,(0xfff),(114),__FILE__,198);executed 211 times by 1 test: ERR_put_error(14,(0xfff),(114),__FILE__,198); | 211 |
| 148 | else | - |
| 149 | ERR_put_error(14,(0xfff),(2),__FILE__,200); never executed: ERR_put_error(14,(0xfff),(2),__FILE__,200); | 0 |
| 150 | returnexecuted 211 times by 1 test: return 0; 0;executed 211 times by 1 test: return 0; | 211 |
| 151 | } | - |
| 152 | | - |
| 153 | ret = def_load_bio(conf, in, line); | - |
| 154 | BIO_free(in); | - |
| 155 | | - |
| 156 | returnexecuted 2 times by 1 test: return ret; ret;executed 2 times by 1 test: return ret; | 2 |
| 157 | } | - |
| 158 | | - |
| 159 | static int | - |
| 160 | def_load_bio(CONF *conf, BIO *in, long *line) | - |
| 161 | { | - |
| 162 | | - |
| 163 | | - |
| 164 | int bufnum = 0, i, ii; | - |
| 165 | BUF_MEM *buff = | - |
| 166 | ((void *)0) | - |
| 167 | ; | - |
| 168 | char *s, *p, *end; | - |
| 169 | int again; | - |
| 170 | long eline = 0; | - |
| 171 | CONF_VALUE *v = | - |
| 172 | ((void *)0) | - |
| 173 | , *tv; | - |
| 174 | CONF_VALUE *sv = | - |
| 175 | ((void *)0) | - |
| 176 | ; | - |
| 177 | char *section = | - |
| 178 | ((void *)0) | - |
| 179 | , *buf; | - |
| 180 | char *start, *psection, *pname; | - |
| 181 | void *h = (void *)(conf->data); | - |
| 182 | | - |
| 183 | if ((| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
buff = BUF_MEM_new()) == | TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 184 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 185 | ) { | - |
| 186 | ERR_put_error(14,(0xfff),(7),__FILE__,227); | - |
| 187 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 188 | } | - |
| 189 | | - |
| 190 | section = | - |
| 191 | (__extension__ (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 192 | "default"| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 193 | )| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
&& ((| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 194 | "default"| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 195 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 196 | "default"| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 197 | ) == 1)| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
? (((const| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
char *) (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 198 | "default"| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 199 | ))[0] == '\0'| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( | 0-2 |
| 200 | "default" | - |
| 201 | ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) __retval = (char *) memcpy (__retval, executed 2 times by 1 test: __retval = (char *) memcpy (__retval, "default" , __len); | 0-2 |
| 202 | "default"executed 2 times by 1 test: __retval = (char *) memcpy (__retval, "default" , __len); | 2 |
| 203 | , __len);executed 2 times by 1 test: __retval = (char *) memcpy (__retval, "default" , __len); __retval; })) : __strdup ( | 2 |
| 204 | "default" | - |
| 205 | ))) | - |
| 206 | ; | - |
| 207 | if (section == | TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 208 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 209 | ) { | - |
| 210 | ERR_put_error(14,(0xfff),((1|64)),__FILE__,233); | - |
| 211 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 212 | } | - |
| 213 | | - |
| 214 | if (_CONF_new_data(conf) == 0| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) { | 0-2 |
| 215 | ERR_put_error(14,(0xfff),((1|64)),__FILE__,238); | - |
| 216 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 217 | } | - |
| 218 | | - |
| 219 | sv = _CONF_new_section(conf, section); | - |
| 220 | if (sv == | TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 221 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 222 | ) { | - |
| 223 | ERR_put_error(14,(0xfff),(103),__FILE__,244); | - |
| 224 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 225 | } | - |
| 226 | | - |
| 227 | bufnum = 0; | - |
| 228 | again = 0; | - |
| 229 | for (;;) { | - |
| 230 | if (!BUF_MEM_grow(buff, bufnum + 512)| TRUE | never evaluated | | FALSE | evaluated 60 times by 1 test |
) { | 0-60 |
| 231 | ERR_put_error(14,(0xfff),(7),__FILE__,252); | - |
| 232 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 233 | } | - |
| 234 | p = &(buff->data[bufnum]); | - |
| 235 | *p = '\0'; | - |
| 236 | BIO_gets(in, p, 512 - 1); | - |
| 237 | p[512 - 1] = '\0'; | - |
| 238 | ii = i = strlen(p); | - |
| 239 | if (i == 0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 58 times by 1 test |
&& !again| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-58 |
| 240 | break;executed 2 times by 1 test: break; | 2 |
| 241 | again = 0; | - |
| 242 | while (i > 0| TRUE | evaluated 100 times by 1 test | | FALSE | evaluated 16 times by 1 test |
) { | 16-100 |
| 243 | if ((| TRUE | evaluated 100 times by 1 test | | FALSE | never evaluated |
p[i - 1] != '\r')| TRUE | evaluated 100 times by 1 test | | FALSE | never evaluated |
&& (| TRUE | evaluated 42 times by 1 test | | FALSE | evaluated 58 times by 1 test |
p[i - 1] != '\n')| TRUE | evaluated 42 times by 1 test | | FALSE | evaluated 58 times by 1 test |
) | 0-100 |
| 244 | break;executed 42 times by 1 test: break; | 42 |
| 245 | else | - |
| 246 | i--;executed 58 times by 1 test: i--; | 58 |
| 247 | } | - |
| 248 | | - |
| 249 | | - |
| 250 | if (ii| TRUE | evaluated 58 times by 1 test | | FALSE | never evaluated |
&& i == ii| TRUE | never evaluated | | FALSE | evaluated 58 times by 1 test |
) | 0-58 |
| 251 | again = 1; never executed: again = 1; | 0 |
| 252 | else { | - |
| 253 | p[i] = '\0'; | - |
| 254 | eline++; | - |
| 255 | }executed 58 times by 1 test: end of block | 58 |
| 256 | | - |
| 257 | | - |
| 258 | | - |
| 259 | | - |
| 260 | bufnum += i; | - |
| 261 | | - |
| 262 | v = | - |
| 263 | ((void *)0) | - |
| 264 | ; | - |
| 265 | | - |
| 266 | if (bufnum >= 1| TRUE | evaluated 42 times by 1 test | | FALSE | evaluated 16 times by 1 test |
) { | 16-42 |
| 267 | | - |
| 268 | | - |
| 269 | p = &(buff->data[bufnum - 1]); | - |
| 270 | if ((((| TRUE | never evaluated | | FALSE | evaluated 42 times by 1 test |
unsigned short *)((conf)->meth_data))[(p[0])&0xff]&32)| TRUE | never evaluated | | FALSE | evaluated 42 times by 1 test |
&& | 0-42 |
| 271 | ((| TRUE | never evaluated | | FALSE | never evaluated |
bufnum <= 1)| TRUE | never evaluated | | FALSE | never evaluated |
|| !(((unsigned short *)((conf)->meth_data))[(p[-1])&0xff]&32)| TRUE | never evaluated | | FALSE | never evaluated |
)) { | 0 |
| 272 | bufnum--; | - |
| 273 | again = 1; | - |
| 274 | } never executed: end of block | 0 |
| 275 | }executed 42 times by 1 test: end of block | 42 |
| 276 | if (again| TRUE | never evaluated | | FALSE | evaluated 58 times by 1 test |
) | 0-58 |
| 277 | continue; never executed: continue; | 0 |
| 278 | bufnum = 0; | - |
| 279 | buf = buff->data; | - |
| 280 | | - |
| 281 | clear_comments(conf, buf); | - |
| 282 | s = eat_ws(conf, buf); | - |
| 283 | if ((((| TRUE | evaluated 30 times by 1 test | | FALSE | evaluated 28 times by 1 test |
unsigned short *)((conf)->meth_data))[(*s)&0xff]&8)| TRUE | evaluated 30 times by 1 test | | FALSE | evaluated 28 times by 1 test |
) | 28-30 |
| 284 | continue;executed 30 times by 1 test: continue; | 30 |
| 285 | if (*| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 24 times by 1 test |
s == '['| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 24 times by 1 test |
) { | 4-24 |
| 286 | char *ss; | - |
| 287 | | - |
| 288 | s++; | - |
| 289 | start = eat_ws(conf, s); | - |
| 290 | ss = start; | - |
| 291 | again:code before this statement executed 4 times by 1 test: again: | 4 |
| 292 | end = eat_alpha_numeric(conf, ss); | - |
| 293 | p = eat_ws(conf, end); | - |
| 294 | if (*| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
p != ']'| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) { | 0-4 |
| 295 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
p != '\0'| TRUE | never evaluated | | FALSE | never evaluated |
&& ss != p| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 296 | ss = p; | - |
| 297 | goto never executed: goto again; again;never executed: goto again; | 0 |
| 298 | } | - |
| 299 | ERR_put_error(14,(0xfff),(100),__FILE__,318); | - |
| 300 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 301 | } | - |
| 302 | *end = '\0'; | - |
| 303 | if (!str_copy(conf, | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 304 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 305 | , §ion, start)| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
| 306 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 307 | if ((| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
sv = _CONF_get_section(conf, section)) == | TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
| 0-4 |
| 308 | ((void *)0)| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
| 0-4 |
| 309 | ) | - |
| 310 | sv = _CONF_new_section(conf, section);executed 4 times by 1 test: sv = _CONF_new_section(conf, section); | 4 |
| 311 | if (sv == | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 312 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 313 | ) { | - |
| 314 | ERR_put_error(14,(0xfff),(103),__FILE__,327); | - |
| 315 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 316 | } | - |
| 317 | continue;executed 4 times by 1 test: continue; | 4 |
| 318 | } else { | - |
| 319 | pname = s; | - |
| 320 | psection = | - |
| 321 | ((void *)0) | - |
| 322 | ; | - |
| 323 | end = eat_alpha_numeric(conf, s); | - |
| 324 | if ((| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
end[0] == ':')| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
end[1] == ':')| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-24 |
| 325 | *end = '\0'; | - |
| 326 | end += 2; | - |
| 327 | psection = pname; | - |
| 328 | pname = end; | - |
| 329 | end = eat_alpha_numeric(conf, end); | - |
| 330 | } never executed: end of block | 0 |
| 331 | p = eat_ws(conf, end); | - |
| 332 | if (*| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
p != '='| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
) { | 0-24 |
| 333 | ERR_put_error(14,(0xfff),(101),__FILE__,344); | - |
| 334 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 335 | } | - |
| 336 | *end = '\0'; | - |
| 337 | p++; | - |
| 338 | start = eat_ws(conf, p); | - |
| 339 | while (!(((unsigned short *)((conf)->meth_data))[(*p)&0xff]&8)| TRUE | evaluated 382 times by 1 test | | FALSE | evaluated 24 times by 1 test |
) | 24-382 |
| 340 | p++;executed 382 times by 1 test: p++; | 382 |
| 341 | p--; | - |
| 342 | while ((| TRUE | evaluated 26 times by 1 test | | FALSE | never evaluated |
p != start)| TRUE | evaluated 26 times by 1 test | | FALSE | never evaluated |
&& ((((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 24 times by 1 test |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&16))| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 24 times by 1 test |
) | 0-26 |
| 343 | p--;executed 2 times by 1 test: p--; | 2 |
| 344 | p++; | - |
| 345 | *p = '\0'; | - |
| 346 | | - |
| 347 | if (!(v = malloc(sizeof(CONF_VALUE)))| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
) { | 0-24 |
| 348 | ERR_put_error(14,(0xfff),((1|64)),__FILE__,359); | - |
| 349 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 350 | } | - |
| 351 | if (psection == | TRUE | evaluated 24 times by 1 test | | FALSE | never evaluated |
| 0-24 |
| 352 | ((void *)0)| TRUE | evaluated 24 times by 1 test | | FALSE | never evaluated |
| 0-24 |
| 353 | ) | - |
| 354 | psection = section;executed 24 times by 1 test: psection = section; | 24 |
| 355 | v->name = | - |
| 356 | (__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 357 | pname| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 358 | )| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
&& ((| TRUE | never evaluated | | FALSE | never evaluated |
size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0-24 |
| 359 | pname| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 360 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 361 | pname| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 362 | ) == 1)| TRUE | never evaluated | | FALSE | never evaluated |
? (((const| TRUE | never evaluated | | FALSE | never evaluated |
char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 363 | pname| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 364 | ))[0] == '\0'| TRUE | never evaluated | | FALSE | never evaluated |
? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( | 0 |
| 365 | pname | - |
| 366 | ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
) __retval = (char *) memcpy (__retval, never executed: __retval = (char *) memcpy (__retval, pname , __len); | 0 |
| 367 | pname never executed: __retval = (char *) memcpy (__retval, pname , __len); | 0 |
| 368 | , __len); never executed: __retval = (char *) memcpy (__retval, pname , __len); __retval; })) : __strdup ( | 0 |
| 369 | pname | - |
| 370 | ))) | - |
| 371 | ; | - |
| 372 | v->value = | - |
| 373 | ((void *)0) | - |
| 374 | ; | - |
| 375 | if (v->name == | TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 376 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 377 | ) { | - |
| 378 | ERR_put_error(14,(0xfff),((1|64)),__FILE__,367); | - |
| 379 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 380 | } | - |
| 381 | if (!str_copy(conf, psection, &(v->value), start)| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
) | 0-24 |
| 382 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 383 | | - |
| 384 | if ( | - |
| 385 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 386 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 387 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 388 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 389 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 390 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 391 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 392 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 393 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 394 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 395 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 396 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 397 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 398 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 399 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 400 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 401 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 402 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 403 | , | TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 404 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 405 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 406 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 407 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 408 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 409 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 410 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 411 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 412 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 413 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 414 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 415 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 416 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 417 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 418 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 419 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 420 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 421 | , | TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 422 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 423 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 424 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 425 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 426 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 427 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 428 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 429 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 430 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 431 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( psection ))[3] - __s2[3]); | TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 432 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( psection ))[3] - __s2[3]); | 0-24 |
| 433 | ))[3] - __s2[3]);| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( psection ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 434 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 435 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 436 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 437 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 438 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 439 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 440 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 441 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 442 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 443 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 444 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 445 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 446 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 447 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 448 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 449 | , | TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 450 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 451 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 452 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 453 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 454 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 455 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 456 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 457 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 458 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 459 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( section ))[3] - __s2[3]); | TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 460 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( section ))[3] - __s2[3]); | 0-24 |
| 461 | ))[3] - __s2[3]);| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( section ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 462 | psection| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 463 | , | TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 464 | section| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 465 | )))); }) | TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
| 0-24 |
| 466 | != 0| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
) { | 0-24 |
| 467 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
tv = _CONF_get_section(conf, psection))| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 468 | == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 469 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 470 | ) | - |
| 471 | tv = _CONF_new_section(conf, psection); never executed: tv = _CONF_new_section(conf, psection); | 0 |
| 472 | if (tv == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 473 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 474 | ) { | - |
| 475 | ERR_put_error(14,(0xfff),(103),__FILE__,378); | - |
| 476 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 477 | } | - |
| 478 | } never executed: end of block else | 0 |
| 479 | tv = sv;executed 24 times by 1 test: tv = sv; | 24 |
| 480 | | - |
| 481 | if (_CONF_add_string(conf, tv, v) == 0| TRUE | never evaluated | | FALSE | evaluated 24 times by 1 test |
) { | 0-24 |
| 482 | ERR_put_error(14,(0xfff),((1|64)),__FILE__,385); | - |
| 483 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 484 | } | - |
| 485 | v = | - |
| 486 | ((void *)0) | - |
| 487 | ; | - |
| 488 | }executed 24 times by 1 test: end of block | 24 |
| 489 | } | - |
| 490 | if (buff != | TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 491 | ((void *)0)| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 492 | ) | - |
| 493 | BUF_MEM_free(buff);executed 2 times by 1 test: BUF_MEM_free(buff); | 2 |
| 494 | free(section); | - |
| 495 | returnexecuted 2 times by 1 test: return (1); (1);executed 2 times by 1 test: return (1); | 2 |
| 496 | | - |
| 497 | err: | - |
| 498 | if (buff != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 499 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 500 | ) | - |
| 501 | BUF_MEM_free(buff); never executed: BUF_MEM_free(buff); | 0 |
| 502 | free(section); | - |
| 503 | if (line != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 504 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 505 | ) | - |
| 506 | * never executed: *line = eline; line = eline;never executed: *line = eline; | 0 |
| 507 | ERR_asprintf_error_data("line %ld", eline); | - |
| 508 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
h != conf->data)| TRUE | never evaluated | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
conf->data != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 509 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 510 | )| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 511 | CONF_free(conf->data); | - |
| 512 | conf->data = | - |
| 513 | ((void *)0) | - |
| 514 | ; | - |
| 515 | } never executed: end of block | 0 |
| 516 | if (v != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 517 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 518 | ) { | - |
| 519 | free(v->name); | - |
| 520 | free(v->value); | - |
| 521 | free(v); | - |
| 522 | } never executed: end of block | 0 |
| 523 | return never executed: return (0); (0);never executed: return (0); | 0 |
| 524 | } | - |
| 525 | | - |
| 526 | static void | - |
| 527 | clear_comments(CONF *conf, char *p) | - |
| 528 | { | - |
| 529 | for (;;) { | - |
| 530 | if ((((| TRUE | never evaluated | | FALSE | evaluated 58 times by 1 test |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&2048)| TRUE | never evaluated | | FALSE | evaluated 58 times by 1 test |
) { | 0-58 |
| 531 | *p = '\0'; | - |
| 532 | return; never executed: return; | 0 |
| 533 | } | - |
| 534 | if (!(((unsigned short *)((conf)->meth_data))[(*p)&0xff]&16)| TRUE | evaluated 58 times by 1 test | | FALSE | never evaluated |
) { | 0-58 |
| 535 | break;executed 58 times by 1 test: break; | 58 |
| 536 | } | - |
| 537 | p++; | - |
| 538 | } never executed: end of block | 0 |
| 539 | | - |
| 540 | for (;;) { | - |
| 541 | if ((((| TRUE | evaluated 14 times by 1 test | | FALSE | evaluated 1212 times by 1 test |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&128)| TRUE | evaluated 14 times by 1 test | | FALSE | evaluated 1212 times by 1 test |
) { | 14-1212 |
| 542 | *p = '\0'; | - |
| 543 | return;executed 14 times by 1 test: return; | 14 |
| 544 | } | - |
| 545 | if ((((| TRUE | never evaluated | | FALSE | evaluated 1212 times by 1 test |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&1024)| TRUE | never evaluated | | FALSE | evaluated 1212 times by 1 test |
) { | 0-1212 |
| 546 | p = scan_dquote(conf, p); | - |
| 547 | continue; never executed: continue; | 0 |
| 548 | } | - |
| 549 | if ((((| TRUE | never evaluated | | FALSE | evaluated 1212 times by 1 test |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&64)| TRUE | never evaluated | | FALSE | evaluated 1212 times by 1 test |
) { | 0-1212 |
| 550 | p = scan_quote(conf, p); | - |
| 551 | continue; never executed: continue; | 0 |
| 552 | } | - |
| 553 | if ((((| TRUE | never evaluated | | FALSE | evaluated 1212 times by 1 test |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&32)| TRUE | never evaluated | | FALSE | evaluated 1212 times by 1 test |
) { | 0-1212 |
| 554 | p = ((((((| TRUE | never evaluated | | FALSE | never evaluated |
unsigned short *)(((conf))->meth_data))[((p)[1])&0xff]&8))| TRUE | never evaluated | | FALSE | never evaluated |
?((p)+1):((p)+2))); | 0 |
| 555 | continue; never executed: continue; | 0 |
| 556 | } | - |
| 557 | if ((((| TRUE | evaluated 44 times by 1 test | | FALSE | evaluated 1168 times by 1 test |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&8)| TRUE | evaluated 44 times by 1 test | | FALSE | evaluated 1168 times by 1 test |
) | 44-1168 |
| 558 | return;executed 44 times by 1 test: return; | 44 |
| 559 | else | - |
| 560 | p++;executed 1168 times by 1 test: p++; | 1168 |
| 561 | } | - |
| 562 | } never executed: end of block | 0 |
| 563 | | - |
| 564 | static int | - |
| 565 | str_copy(CONF *conf, char *section, char **pto, char *from) | - |
| 566 | { | - |
| 567 | int q, r,rr = 0, to = 0, len = 0; | - |
| 568 | char *s, *e, *rp, *p, *rrp, *np, *cp, v; | - |
| 569 | BUF_MEM *buf; | - |
| 570 | | - |
| 571 | if ((| TRUE | never evaluated | | FALSE | evaluated 28 times by 1 test |
buf = BUF_MEM_new()) == | TRUE | never evaluated | | FALSE | evaluated 28 times by 1 test |
| 0-28 |
| 572 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 28 times by 1 test |
| 0-28 |
| 573 | ) | - |
| 574 | return never executed: return (0); (0);never executed: return (0); | 0 |
| 575 | | - |
| 576 | len = strlen(from) + 1; | - |
| 577 | if (!BUF_MEM_grow(buf, len)| TRUE | never evaluated | | FALSE | evaluated 28 times by 1 test |
) | 0-28 |
| 578 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 579 | | - |
| 580 | for (;;) { | - |
| 581 | if ((((| TRUE | never evaluated | | FALSE | evaluated 434 times by 1 test |
unsigned short *)((conf)->meth_data))[(*from)&0xff]&64)| TRUE | never evaluated | | FALSE | evaluated 434 times by 1 test |
) { | 0-434 |
| 582 | q = *from; | - |
| 583 | from++; | - |
| 584 | while (!(((unsigned short *)((conf)->meth_data))[(*from)&0xff]&8)| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
from != q)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 585 | if ((((| TRUE | never evaluated | | FALSE | never evaluated |
unsigned short *)((conf)->meth_data))[(*from)&0xff]&32)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 586 | from++; | - |
| 587 | if ((((| TRUE | never evaluated | | FALSE | never evaluated |
unsigned short *)((conf)->meth_data))[(*from)&0xff]&8)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 588 | break; never executed: break; | 0 |
| 589 | } never executed: end of block | 0 |
| 590 | buf->data[to++] = *(from++); | - |
| 591 | } never executed: end of block | 0 |
| 592 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
from == q| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 593 | from++; never executed: from++; | 0 |
| 594 | } never executed: end of block else if ((((| TRUE | never evaluated | | FALSE | evaluated 434 times by 1 test |
unsigned short *)((conf)->meth_data))[(*from)&0xff]&1024)| TRUE | never evaluated | | FALSE | evaluated 434 times by 1 test |
) { | 0-434 |
| 595 | q = *from; | - |
| 596 | from++; | - |
| 597 | while (!(((unsigned short *)((conf)->meth_data))[(*from)&0xff]&8)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 598 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
from == q| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 599 | if (*(| TRUE | never evaluated | | FALSE | never evaluated |
from + 1) == q| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 600 | from++; | - |
| 601 | } never executed: end of block else { | 0 |
| 602 | break; never executed: break; | 0 |
| 603 | } | - |
| 604 | } | - |
| 605 | buf->data[to++] = *(from++); | - |
| 606 | } never executed: end of block | 0 |
| 607 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
from == q| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 608 | from++; never executed: from++; | 0 |
| 609 | } never executed: end of block else if ((((| TRUE | never evaluated | | FALSE | evaluated 434 times by 1 test |
unsigned short *)((conf)->meth_data))[(*from)&0xff]&32)| TRUE | never evaluated | | FALSE | evaluated 434 times by 1 test |
) { | 0-434 |
| 610 | from++; | - |
| 611 | v = *(from++); | - |
| 612 | if ((((| TRUE | never evaluated | | FALSE | never evaluated |
unsigned short *)((conf)->meth_data))[(v)&0xff]&8)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 613 | break; never executed: break; | 0 |
| 614 | else if (v == 'r'| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 615 | v = '\r'; never executed: v = '\r'; | 0 |
| 616 | else if (v == 'n'| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 617 | v = '\n'; never executed: v = '\n'; | 0 |
| 618 | else if (v == 'b'| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 619 | v = '\b'; never executed: v = '\b'; | 0 |
| 620 | else if (v == 't'| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 621 | v = '\t'; never executed: v = '\t'; | 0 |
| 622 | buf->data[to++] = v; | - |
| 623 | } never executed: end of block else if ((((| TRUE | evaluated 28 times by 1 test | | FALSE | evaluated 406 times by 1 test |
unsigned short *)((conf)->meth_data))[(*from)&0xff]&8)| TRUE | evaluated 28 times by 1 test | | FALSE | evaluated 406 times by 1 test |
) | 0-406 |
| 624 | break;executed 28 times by 1 test: break; | 28 |
| 625 | else if (*| TRUE | never evaluated | | FALSE | evaluated 406 times by 1 test |
from == '$'| TRUE | never evaluated | | FALSE | evaluated 406 times by 1 test |
) { | 0-406 |
| 626 | | - |
| 627 | rrp = | - |
| 628 | ((void *)0) | - |
| 629 | ; | - |
| 630 | s = &(from[1]); | - |
| 631 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
s == '{'| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 632 | q = '}'; never executed: q = '}'; | 0 |
| 633 | else if (*| TRUE | never evaluated | | FALSE | never evaluated |
s == '('| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 634 | q = ')'; never executed: q = ')'; | 0 |
| 635 | else | - |
| 636 | q = 0; never executed: q = 0; | 0 |
| 637 | | - |
| 638 | if (q| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 639 | s++; never executed: s++; | 0 |
| 640 | cp = section; | - |
| 641 | e = np = s; | - |
| 642 | while ((((| TRUE | never evaluated | | FALSE | never evaluated |
unsigned short *)((conf)->meth_data))[(*e)&0xff]&((2|4)|1|256))| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 643 | e++; never executed: e++; | 0 |
| 644 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
e[0] == ':')| TRUE | never evaluated | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
e[1] == ':')| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 645 | cp = np; | - |
| 646 | rrp = e; | - |
| 647 | rr = *e; | - |
| 648 | *rrp = '\0'; | - |
| 649 | e += 2; | - |
| 650 | np = e; | - |
| 651 | while ((((| TRUE | never evaluated | | FALSE | never evaluated |
unsigned short *)((conf)->meth_data))[(*e)&0xff]&((2|4)|1|256))| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 652 | e++; never executed: e++; | 0 |
| 653 | } never executed: end of block | 0 |
| 654 | r = *e; | - |
| 655 | *e = '\0'; | - |
| 656 | rp = e; | - |
| 657 | if (q| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 658 | if (r != q| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 659 | ERR_put_error(14,(0xfff),(102),__FILE__,544); | - |
| 660 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 661 | } | - |
| 662 | e++; | - |
| 663 | } never executed: end of block | 0 |
| 664 | p = _CONF_get_string(conf, cp, np); | - |
| 665 | if (rrp != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 666 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 667 | ) | - |
| 668 | * never executed: *rrp = rr; rrp = rr;never executed: *rrp = rr; | 0 |
| 669 | *rp = r; | - |
| 670 | if (p == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 671 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 672 | ) { | - |
| 673 | ERR_put_error(14,(0xfff),(104),__FILE__,563); | - |
| 674 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 675 | } | - |
| 676 | if (!BUF_MEM_grow_clean(buf,| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 677 | (strlen(p) + buf->length - (e - from)))| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 678 | ERR_put_error(14,(0xfff),(109),__FILE__,568); | - |
| 679 | goto never executed: goto err; err;never executed: goto err; | 0 |
| 680 | } | - |
| 681 | while (*| TRUE | never evaluated | | FALSE | never evaluated |
p| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 682 | buf->data[to++] = *(p++); never executed: buf->data[to++] = *(p++); | 0 |
| 683 | | - |
| 684 | | - |
| 685 | | - |
| 686 | | - |
| 687 | len -= e - from; | - |
| 688 | from = e; | - |
| 689 | | - |
| 690 | | - |
| 691 | | - |
| 692 | | - |
| 693 | *rp = r; | - |
| 694 | } never executed: end of block else | 0 |
| 695 | buf->data[to++] = *(from++);executed 406 times by 1 test: buf->data[to++] = *(from++); | 406 |
| 696 | } | - |
| 697 | buf->data[to]='\0'; | - |
| 698 | free(*pto); | - |
| 699 | *pto = buf->data; | - |
| 700 | free(buf); | - |
| 701 | returnexecuted 28 times by 1 test: return (1); (1);executed 28 times by 1 test: return (1); | 28 |
| 702 | | - |
| 703 | err: | - |
| 704 | if (buf != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 705 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 706 | ) | - |
| 707 | BUF_MEM_free(buf); never executed: BUF_MEM_free(buf); | 0 |
| 708 | return never executed: return (0); (0);never executed: return (0); | 0 |
| 709 | } | - |
| 710 | | - |
| 711 | static char * | - |
| 712 | eat_ws(CONF *conf, char *p) | - |
| 713 | { | - |
| 714 | while ((((| TRUE | evaluated 356 times by 1 test | | FALSE | evaluated 114 times by 1 test |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&16)| TRUE | evaluated 356 times by 1 test | | FALSE | evaluated 114 times by 1 test |
&& (| TRUE | evaluated 356 times by 1 test | | FALSE | never evaluated |
!(((unsigned short *)((conf)->meth_data))[(*p)&0xff]&8))| TRUE | evaluated 356 times by 1 test | | FALSE | never evaluated |
) | 0-356 |
| 715 | p++;executed 356 times by 1 test: p++; | 356 |
| 716 | returnexecuted 114 times by 1 test: return (p); (p);executed 114 times by 1 test: return (p); | 114 |
| 717 | } | - |
| 718 | | - |
| 719 | static char * | - |
| 720 | eat_alpha_numeric(CONF *conf, char *p) | - |
| 721 | { | - |
| 722 | for (;;) { | - |
| 723 | if ((((| TRUE | never evaluated | | FALSE | evaluated 450 times by 1 test |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&32)| TRUE | never evaluated | | FALSE | evaluated 450 times by 1 test |
) { | 0-450 |
| 724 | p = ((((((| TRUE | never evaluated | | FALSE | never evaluated |
unsigned short *)(((conf))->meth_data))[((p)[1])&0xff]&8))| TRUE | never evaluated | | FALSE | never evaluated |
?((p)+1):((p)+2))); | 0 |
| 725 | continue; never executed: continue; | 0 |
| 726 | } | - |
| 727 | if (!(((unsigned short *)((conf)->meth_data))[(*p)&0xff]&((2|4)|1|256| 512))| TRUE | evaluated 28 times by 1 test | | FALSE | evaluated 422 times by 1 test |
) | 28-422 |
| 728 | returnexecuted 28 times by 1 test: return (p); (p);executed 28 times by 1 test: return (p); | 28 |
| 729 | p++; | - |
| 730 | }executed 422 times by 1 test: end of block | 422 |
| 731 | } never executed: end of block | 0 |
| 732 | | - |
| 733 | static char * | - |
| 734 | scan_quote(CONF *conf, char *p) | - |
| 735 | { | - |
| 736 | int q = *p; | - |
| 737 | | - |
| 738 | p++; | - |
| 739 | while (!((((unsigned short *)((conf)->meth_data))[(*p)&0xff]&8))| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
p != q)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 740 | if ((((| TRUE | never evaluated | | FALSE | never evaluated |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&32)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 741 | p++; | - |
| 742 | if ((((| TRUE | never evaluated | | FALSE | never evaluated |
unsigned short *)((conf)->meth_data))[(*p)&0xff]&8)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 743 | return never executed: return (p); (p);never executed: return (p); | 0 |
| 744 | } never executed: end of block | 0 |
| 745 | p++; | - |
| 746 | } never executed: end of block | 0 |
| 747 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
p == q| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 748 | p++; never executed: p++; | 0 |
| 749 | return never executed: return (p); (p);never executed: return (p); | 0 |
| 750 | } | - |
| 751 | | - |
| 752 | | - |
| 753 | static char * | - |
| 754 | scan_dquote(CONF *conf, char *p) | - |
| 755 | { | - |
| 756 | int q = *p; | - |
| 757 | | - |
| 758 | p++; | - |
| 759 | while (!((((unsigned short *)((conf)->meth_data))[(*p)&0xff]&8))| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 760 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
p == q| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 761 | if (*(| TRUE | never evaluated | | FALSE | never evaluated |
p + 1) == q| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 762 | p++; | - |
| 763 | } never executed: end of block else { | 0 |
| 764 | break; never executed: break; | 0 |
| 765 | } | - |
| 766 | } | - |
| 767 | p++; | - |
| 768 | } never executed: end of block | 0 |
| 769 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
p == q| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 770 | p++; never executed: p++; | 0 |
| 771 | return never executed: return (p); (p);never executed: return (p); | 0 |
| 772 | } | - |
| 773 | | - |
| 774 | static void | - |
| 775 | dump_value_doall_arg(CONF_VALUE *a, BIO *out) | - |
| 776 | { | - |
| 777 | if (a->name| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 778 | BIO_printf(out, "[%s] %s=%s\n", a->section, a->name, a->value); never executed: BIO_printf(out, "[%s] %s=%s\n", a->section, a->name, a->value); | 0 |
| 779 | else | - |
| 780 | BIO_printf(out, "[[%s]]\n", a->section); never executed: BIO_printf(out, "[[%s]]\n", a->section); | 0 |
| 781 | } | - |
| 782 | | - |
| 783 | static void dump_value_LHASH_DOALL_ARG(void *arg1, void *arg2) { CONF_VALUE *a = arg1; BIO *b = arg2; dump_value_doall_arg(a, b); } never executed: end of block | 0 |
| 784 | | - |
| 785 | static int | - |
| 786 | def_dump(const CONF *conf, BIO *out) | - |
| 787 | { | - |
| 788 | lh_doall_arg(((_LHASH *)((void*) (1 ? conf->data : (struct lhash_st_CONF_VALUE*)0))), dump_value_LHASH_DOALL_ARG, ((void*) (1 ? out : (BIO*)0))) | - |
| 789 | ; | - |
| 790 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 791 | } | - |
| 792 | | - |
| 793 | static int | - |
| 794 | def_is_number(const CONF *conf, char c) | - |
| 795 | { | - |
| 796 | return never executed: return (((unsigned short *)((conf)->meth_data))[(c)&0xff]&1); (((unsigned short *)((conf)->meth_data))[(c)&0xff]&1);never executed: return (((unsigned short *)((conf)->meth_data))[(c)&0xff]&1); | 0 |
| 797 | } | - |
| 798 | | - |
| 799 | static int | - |
| 800 | def_to_int(const CONF *conf, char c) | - |
| 801 | { | - |
| 802 | return never executed: return c - '0'; c - '0';never executed: return c - '0'; | 0 |
| 803 | } | - |
| | |