| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | static const char *int_no_description = ""; | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | static int int_ctrl_cmd_is_null(const ENGINE_CMD_DEFN *defn) | - |
| 15 | { | - |
| 16 | if ((| TRUE | never evaluated | | FALSE | evaluated 29440 times by 1 test |
defn->cmd_num == 0)| TRUE | never evaluated | | FALSE | evaluated 29440 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 29440 times by 1 test |
defn->cmd_name == | TRUE | never evaluated | | FALSE | evaluated 29440 times by 1 test |
| 0-29440 |
| 17 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 29440 times by 1 test |
| 0-29440 |
| 18 | )| TRUE | never evaluated | | FALSE | evaluated 29440 times by 1 test |
) | 0-29440 |
| 19 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 20 | returnexecuted 29440 times by 1 test: return 0; 0;executed 29440 times by 1 test: return 0; | 29440 |
| 21 | } | - |
| 22 | | - |
| 23 | static int int_ctrl_cmd_by_name(const ENGINE_CMD_DEFN *defn, const char *s) | - |
| 24 | { | - |
| 25 | int idx = 0; | - |
| 26 | while (!int_ctrl_cmd_is_null(defn)| TRUE | evaluated 9200 times by 1 test | | FALSE | never evaluated |
&& (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 0-9200 |
| 27 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 28 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 29 | ) && __builtin_constant_p (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 30 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 31 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 32 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 33 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 34 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 35 | ), (!((size_t)(const void *)((| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 36 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 37 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 38 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 39 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 40 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 41 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 42 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 43 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 44 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 45 | , | TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 46 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 47 | ) : (__builtin_constant_p (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 48 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 49 | ) && ((size_t)(const void *)((| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 50 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 51 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 52 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 53 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 54 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 55 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 56 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 57 | ) && ((size_t)(const void *)((| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 58 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 59 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 60 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 61 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 62 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 63 | , | TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 64 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 65 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 66 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 67 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 68 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 69 | ))[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 | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 0-7360 |
| 70 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 71 | ))[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 | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 0-7360 |
| 72 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 73 | ))[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 *) ( defn->cmd_name ))[3] - __s2[3]); | TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 0-7360 |
| 74 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( defn->cmd_name ))[3] - __s2[3]); | 0-7360 |
| 75 | ))[3] - __s2[3]);| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( defn->cmd_name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 0-7360 |
| 76 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 77 | ) && ((size_t)(const void *)((| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 78 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 79 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 80 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 81 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 82 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 83 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 84 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 85 | ) && ((size_t)(const void *)((| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 86 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 87 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 88 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 89 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 90 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 91 | , | TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 92 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 93 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 94 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 95 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 96 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 97 | ))[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 | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 0-7360 |
| 98 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 99 | ))[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 | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 0-7360 |
| 100 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 101 | ))[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 *) ( s ))[3] - __s2[3]); | TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 0-7360 |
| 102 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( s ))[3] - __s2[3]); | 0-7360 |
| 103 | ))[3] - __s2[3]);| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( s ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 0-7360 |
| 104 | defn->cmd_name| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 105 | , | TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 106 | s| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 107 | )))); }) | TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
| 1840-7360 |
| 108 | != 0)| TRUE | evaluated 7360 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
) { | 1840-7360 |
| 109 | idx++; | - |
| 110 | defn++; | - |
| 111 | }executed 7360 times by 1 test: end of block | 7360 |
| 112 | if (int_ctrl_cmd_is_null(defn)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
) | 0-1840 |
| 113 | | - |
| 114 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 115 | returnexecuted 1840 times by 1 test: return idx; idx;executed 1840 times by 1 test: return idx; | 1840 |
| 116 | } | - |
| 117 | | - |
| 118 | static int int_ctrl_cmd_by_num(const ENGINE_CMD_DEFN *defn, unsigned int num) | - |
| 119 | { | - |
| 120 | int idx = 0; | - |
| 121 | | - |
| 122 | | - |
| 123 | | - |
| 124 | | - |
| 125 | while (!int_ctrl_cmd_is_null(defn)| TRUE | evaluated 18400 times by 1 test | | FALSE | never evaluated |
&& (| TRUE | evaluated 14720 times by 1 test | | FALSE | evaluated 3680 times by 1 test |
defn->cmd_num < num)| TRUE | evaluated 14720 times by 1 test | | FALSE | evaluated 3680 times by 1 test |
) { | 0-18400 |
| 126 | idx++; | - |
| 127 | defn++; | - |
| 128 | }executed 14720 times by 1 test: end of block | 14720 |
| 129 | if (defn->cmd_num == num| TRUE | evaluated 3680 times by 1 test | | FALSE | never evaluated |
) | 0-3680 |
| 130 | returnexecuted 3680 times by 1 test: return idx; idx;executed 3680 times by 1 test: return idx; | 3680 |
| 131 | | - |
| 132 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 133 | } | - |
| 134 | | - |
| 135 | static int int_ctrl_helper(ENGINE *e, int cmd, long i, void *p, | - |
| 136 | void (*f) (void)) | - |
| 137 | { | - |
| 138 | int idx; | - |
| 139 | char *s = (char *)p; | - |
| 140 | const ENGINE_CMD_DEFN *cdp; | - |
| 141 | | - |
| 142 | | - |
| 143 | if (cmd == 11| TRUE | never evaluated | | FALSE | evaluated 5520 times by 1 test |
) { | 0-5520 |
| 144 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
e->cmd_defns == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 145 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 146 | )| TRUE | never evaluated | | FALSE | never evaluated |
|| int_ctrl_cmd_is_null(e->cmd_defns)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 147 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 148 | return never executed: return e->cmd_defns->cmd_num; e->cmd_defns->cmd_num;never executed: return e->cmd_defns->cmd_num; | 0 |
| 149 | } | - |
| 150 | | - |
| 151 | if ((| TRUE | evaluated 1840 times by 1 test | | FALSE | evaluated 3680 times by 1 test |
cmd == 13)| TRUE | evaluated 1840 times by 1 test | | FALSE | evaluated 3680 times by 1 test |
|| | 1840-3680 |
| 152 | (| TRUE | never evaluated | | FALSE | evaluated 3680 times by 1 test |
cmd == 15)| TRUE | never evaluated | | FALSE | evaluated 3680 times by 1 test |
|| | 0-3680 |
| 153 | (| TRUE | never evaluated | | FALSE | evaluated 3680 times by 1 test |
cmd == 17)| TRUE | never evaluated | | FALSE | evaluated 3680 times by 1 test |
) { | 0-3680 |
| 154 | if (s == | TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 155 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 156 | ) { | - |
| 157 | ERR_put_error(38,(172),((3|64)),__FILE__,79); | - |
| 158 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 159 | } | - |
| 160 | }executed 1840 times by 1 test: end of block | 1840 |
| 161 | | - |
| 162 | if (cmd == 13| TRUE | evaluated 1840 times by 1 test | | FALSE | evaluated 3680 times by 1 test |
) { | 1840-3680 |
| 163 | if ((| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
e->cmd_defns == | TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 164 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 165 | )| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 166 | || ((| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
idx = int_ctrl_cmd_by_name(e->cmd_defns, s)) < 0)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
) { | 0-1840 |
| 167 | ERR_put_error(38,(172),(137),__FILE__,87); | - |
| 168 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 169 | } | - |
| 170 | returnexecuted 1840 times by 1 test: return e->cmd_defns[idx].cmd_num; e->cmd_defns[idx].cmd_num;executed 1840 times by 1 test: return e->cmd_defns[idx].cmd_num; | 1840 |
| 171 | } | - |
| 172 | | - |
| 173 | | - |
| 174 | | - |
| 175 | | - |
| 176 | if ((| TRUE | never evaluated | | FALSE | evaluated 3680 times by 1 test |
e->cmd_defns == | TRUE | never evaluated | | FALSE | evaluated 3680 times by 1 test |
| 0-3680 |
| 177 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 3680 times by 1 test |
| 0-3680 |
| 178 | )| TRUE | never evaluated | | FALSE | evaluated 3680 times by 1 test |
| 0-3680 |
| 179 | || ((| TRUE | never evaluated | | FALSE | evaluated 3680 times by 1 test |
idx = int_ctrl_cmd_by_num(e->cmd_defns, (unsigned int)i)) < 0)| TRUE | never evaluated | | FALSE | evaluated 3680 times by 1 test |
) { | 0-3680 |
| 180 | ERR_put_error(38,(172),(138),__FILE__,98); | - |
| 181 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 182 | } | - |
| 183 | | - |
| 184 | cdp = &e->cmd_defns[idx]; | - |
| 185 | switch (cmd) { | - |
| 186 | case never executed: case 12: 12:never executed: case 12: | 0 |
| 187 | cdp++; | - |
| 188 | return never executed: return int_ctrl_cmd_is_null(cdp) ? 0 : cdp->cmd_num; int_ctrl_cmd_is_null(cdp)| TRUE | never evaluated | | FALSE | never evaluated |
? 0 : cdp->cmd_num;never executed: return int_ctrl_cmd_is_null(cdp) ? 0 : cdp->cmd_num; | 0 |
| 189 | case never executed: case 14: 14:never executed: case 14: | 0 |
| 190 | return never executed: return strlen(cdp->cmd_name); strlen(cdp->cmd_name);never executed: return strlen(cdp->cmd_name); | 0 |
| 191 | case never executed: case 15: 15:never executed: case 15: | 0 |
| 192 | return never executed: return strlen(strcpy(s, cdp->cmd_name)); strlen(strcpy(s, cdp->cmd_name));never executed: return strlen(strcpy(s, cdp->cmd_name)); | 0 |
| 193 | case never executed: case 16: 16:never executed: case 16: | 0 |
| 194 | return never executed: return strlen(cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc); strlen(cdp->cmd_desc == never executed: return strlen(cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc); | 0 |
| 195 | ((void *)0) never executed: return strlen(cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc); | 0 |
| 196 | ? int_no_description never executed: return strlen(cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc); | 0 |
| 197 | : cdp->cmd_desc); never executed: return strlen(cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc); | 0 |
| 198 | case never executed: case 17: 17:never executed: case 17: | 0 |
| 199 | return never executed: return strlen(strcpy(s, cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc)); strlen(strcpy(s, cdp->cmd_desc == never executed: return strlen(strcpy(s, cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc)); | 0 |
| 200 | ((void *)0) never executed: return strlen(strcpy(s, cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc)); | 0 |
| 201 | ? int_no_description never executed: return strlen(strcpy(s, cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc)); | 0 |
| 202 | : cdp->cmd_desc)); never executed: return strlen(strcpy(s, cdp->cmd_desc == ((void *)0) ? int_no_description : cdp->cmd_desc)); | 0 |
| 203 | caseexecuted 3680 times by 1 test: case 18: 18:executed 3680 times by 1 test: case 18: | 3680 |
| 204 | returnexecuted 3680 times by 1 test: return cdp->cmd_flags; cdp->cmd_flags;executed 3680 times by 1 test: return cdp->cmd_flags; | 3680 |
| 205 | } | - |
| 206 | | - |
| 207 | ERR_put_error(38,(172),(110),__FILE__,121); | - |
| 208 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 209 | } | - |
| 210 | | - |
| 211 | int ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void)) | - |
| 212 | { | - |
| 213 | int ctrl_exists, ref_exists; | - |
| 214 | if (e == | TRUE | never evaluated | | FALSE | evaluated 7727 times by 1 test |
| 0-7727 |
| 215 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 7727 times by 1 test |
| 0-7727 |
| 216 | ) { | - |
| 217 | ERR_put_error(38,(142),((3|64)),__FILE__,129); | - |
| 218 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 219 | } | - |
| 220 | CRYPTO_THREAD_write_lock(global_engine_lock); | - |
| 221 | ref_exists = ((| TRUE | evaluated 7727 times by 1 test | | FALSE | never evaluated |
e->struct_ref > 0)| TRUE | evaluated 7727 times by 1 test | | FALSE | never evaluated |
? 1 : 0); | 0-7727 |
| 222 | CRYPTO_THREAD_unlock(global_engine_lock); | - |
| 223 | ctrl_exists = ((| TRUE | evaluated 367 times by 1 test | | FALSE | evaluated 7360 times by 1 test |
e->ctrl == | TRUE | evaluated 367 times by 1 test | | FALSE | evaluated 7360 times by 1 test |
| 367-7360 |
| 224 | ((void *)0)| TRUE | evaluated 367 times by 1 test | | FALSE | evaluated 7360 times by 1 test |
| 367-7360 |
| 225 | )| TRUE | evaluated 367 times by 1 test | | FALSE | evaluated 7360 times by 1 test |
? 0 : 1); | 367-7360 |
| 226 | if (!ref_exists| TRUE | never evaluated | | FALSE | evaluated 7727 times by 1 test |
) { | 0-7727 |
| 227 | ERR_put_error(38,(142),(130),__FILE__,137); | - |
| 228 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 229 | } | - |
| 230 | | - |
| 231 | | - |
| 232 | | - |
| 233 | | - |
| 234 | switch (cmd) { | - |
| 235 | case never executed: case 10: 10:never executed: case 10: | 0 |
| 236 | return never executed: return ctrl_exists; ctrl_exists;never executed: return ctrl_exists; | 0 |
| 237 | case never executed: case 11: 11:never executed: case 11: | 0 |
| 238 | case never executed: case 12: 12:never executed: case 12: | 0 |
| 239 | caseexecuted 1840 times by 1 test: case 13: 13:executed 1840 times by 1 test: case 13: | 1840 |
| 240 | case never executed: case 14: 14:never executed: case 14: | 0 |
| 241 | case never executed: case 15: 15:never executed: case 15: | 0 |
| 242 | case never executed: case 16: 16:never executed: case 16: | 0 |
| 243 | case never executed: case 17: 17:never executed: case 17: | 0 |
| 244 | caseexecuted 3680 times by 1 test: case 18: 18:executed 3680 times by 1 test: case 18: | 3680 |
| 245 | if (ctrl_exists| TRUE | evaluated 5520 times by 1 test | | FALSE | never evaluated |
&& !(e->flags & (int)0x0002)| TRUE | evaluated 5520 times by 1 test | | FALSE | never evaluated |
) | 0-5520 |
| 246 | returnexecuted 5520 times by 1 test: return int_ctrl_helper(e, cmd, i, p, f); int_ctrl_helper(e, cmd, i, p, f);executed 5520 times by 1 test: return int_ctrl_helper(e, cmd, i, p, f); | 5520 |
| 247 | if (!ctrl_exists| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 248 | ERR_put_error(38,(142),(120),__FILE__,158); | - |
| 249 | | - |
| 250 | | - |
| 251 | | - |
| 252 | | - |
| 253 | | - |
| 254 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 255 | } | - |
| 256 | defaultexecuted 2207 times by 1 test: default: code before this statement never executed: default: executed 2207 times by 1 test: default: :code before this statement never executed: default: executed 2207 times by 1 test: default: | 0-2207 |
| 257 | break;executed 2207 times by 1 test: break; | 2207 |
| 258 | } | - |
| 259 | | - |
| 260 | if (!ctrl_exists| TRUE | evaluated 367 times by 1 test | | FALSE | evaluated 1840 times by 1 test |
) { | 367-1840 |
| 261 | ERR_put_error(38,(142),(120),__FILE__,171); | - |
| 262 | returnexecuted 367 times by 1 test: return 0; 0;executed 367 times by 1 test: return 0; | 367 |
| 263 | } | - |
| 264 | returnexecuted 1840 times by 1 test: return e->ctrl(e, cmd, i, p, f); e->ctrl(e, cmd, i, p, f);executed 1840 times by 1 test: return e->ctrl(e, cmd, i, p, f); | 1840 |
| 265 | } | - |
| 266 | | - |
| 267 | int ENGINE_cmd_is_executable(ENGINE *e, int cmd) | - |
| 268 | { | - |
| 269 | int flags; | - |
| 270 | if ((| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
flags =| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 271 | ENGINE_ctrl(e, 18, cmd, | TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 272 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 273 | , | TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 274 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 275 | )) < 0| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
) { | 0-1840 |
| 276 | ERR_put_error(38,(170),(138),__FILE__,183) | - |
| 277 | ; | - |
| 278 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 279 | } | - |
| 280 | if (!(flags & (unsigned int)0x0004)| TRUE | evaluated 1472 times by 1 test | | FALSE | evaluated 368 times by 1 test |
&& | 368-1472 |
| 281 | !(flags & (unsigned int)0x0001)| TRUE | evaluated 736 times by 1 test | | FALSE | evaluated 736 times by 1 test |
&& | 736 |
| 282 | !(flags & (unsigned int)0x0002)| TRUE | never evaluated | | FALSE | evaluated 736 times by 1 test |
) | 0-736 |
| 283 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 284 | returnexecuted 1840 times by 1 test: return 1; 1;executed 1840 times by 1 test: return 1; | 1840 |
| 285 | } | - |
| 286 | | - |
| 287 | int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name, | - |
| 288 | long i, void *p, void (*f) (void), int cmd_optional) | - |
| 289 | { | - |
| 290 | int num; | - |
| 291 | | - |
| 292 | if (e == | TRUE | never evaluated | | FALSE | evaluated 367 times by 1 test |
| 0-367 |
| 293 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 367 times by 1 test |
| 0-367 |
| 294 | || cmd_name == | TRUE | never evaluated | | FALSE | evaluated 367 times by 1 test |
| 0-367 |
| 295 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 367 times by 1 test |
| 0-367 |
| 296 | ) { | - |
| 297 | ERR_put_error(38,(178),((3|64)),__FILE__,199); | - |
| 298 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 299 | } | - |
| 300 | if (e->ctrl == | TRUE | evaluated 367 times by 1 test | | FALSE | never evaluated |
| 0-367 |
| 301 | ((void *)0)| TRUE | evaluated 367 times by 1 test | | FALSE | never evaluated |
| 0-367 |
| 302 | | - |
| 303 | || (| TRUE | never evaluated | | FALSE | never evaluated |
num = ENGINE_ctrl(e, 13,| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 304 | 0, (void *)cmd_name, | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 305 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 306 | )) <= 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 307 | if (cmd_optional| TRUE | evaluated 367 times by 1 test | | FALSE | never evaluated |
) { | 0-367 |
| 308 | ERR_clear_error(); | - |
| 309 | returnexecuted 367 times by 1 test: return 1; 1;executed 367 times by 1 test: return 1; | 367 |
| 310 | } | - |
| 311 | ERR_put_error(38,(178),(137),__FILE__,217); | - |
| 312 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 313 | } | - |
| 314 | | - |
| 315 | | - |
| 316 | | - |
| 317 | | - |
| 318 | if (ENGINE_ctrl(e, num, i, p, f) > 0| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 319 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 320 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 321 | } | - |
| 322 | | - |
| 323 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, | - |
| 324 | int cmd_optional) | - |
| 325 | { | - |
| 326 | int num, flags; | - |
| 327 | long l; | - |
| 328 | char *ptr; | - |
| 329 | | - |
| 330 | if (e == | TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 331 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 332 | || cmd_name == | TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 333 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 334 | ) { | - |
| 335 | ERR_put_error(38,(171),((3|64)),__FILE__,237); | - |
| 336 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 337 | } | - |
| 338 | if (e->ctrl == | TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 339 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 340 | | - |
| 341 | || (| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
num = ENGINE_ctrl(e, 13,| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 342 | 0, (void *)cmd_name, | TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 343 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
| 0-1840 |
| 344 | )) <= 0| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
) { | 0-1840 |
| 345 | if (cmd_optional| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 346 | ERR_clear_error(); | - |
| 347 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 348 | } | - |
| 349 | ERR_put_error(38,(171),(137),__FILE__,255); | - |
| 350 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 351 | } | - |
| 352 | if (!ENGINE_cmd_is_executable(e, num)| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
) { | 0-1840 |
| 353 | ERR_put_error(38,(171),(134),__FILE__,260) | - |
| 354 | ; | - |
| 355 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 356 | } | - |
| 357 | | - |
| 358 | flags = ENGINE_ctrl(e, 18, num, | - |
| 359 | ((void *)0) | - |
| 360 | , | - |
| 361 | ((void *)0) | - |
| 362 | ); | - |
| 363 | if (flags < 0| TRUE | never evaluated | | FALSE | evaluated 1840 times by 1 test |
) { | 0-1840 |
| 364 | | - |
| 365 | | - |
| 366 | | - |
| 367 | | - |
| 368 | ERR_put_error(38,(171),(110),__FILE__,271) | - |
| 369 | ; | - |
| 370 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 371 | } | - |
| 372 | | - |
| 373 | | - |
| 374 | | - |
| 375 | if (flags & (unsigned int)0x0004| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 1472 times by 1 test |
) { | 368-1472 |
| 376 | if (arg != | TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 377 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 378 | ) { | - |
| 379 | ERR_put_error(38,(171),(136),__FILE__,280) | - |
| 380 | ; | - |
| 381 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 382 | } | - |
| 383 | | - |
| 384 | | - |
| 385 | | - |
| 386 | | - |
| 387 | | - |
| 388 | | - |
| 389 | if (ENGINE_ctrl(e, num, 0, (void *)arg, | TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 390 | ((void *)0)| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 391 | ) > 0| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
) | 0-368 |
| 392 | returnexecuted 368 times by 1 test: return 1; 1;executed 368 times by 1 test: return 1; | 368 |
| 393 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 394 | } | - |
| 395 | | - |
| 396 | if (arg == | TRUE | never evaluated | | FALSE | evaluated 1472 times by 1 test |
| 0-1472 |
| 397 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 1472 times by 1 test |
| 0-1472 |
| 398 | ) { | - |
| 399 | ERR_put_error(38,(171),(135),__FILE__,296) | - |
| 400 | ; | - |
| 401 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 402 | } | - |
| 403 | | - |
| 404 | if (flags & (unsigned int)0x0002| TRUE | evaluated 736 times by 1 test | | FALSE | evaluated 736 times by 1 test |
) { | 736 |
| 405 | | - |
| 406 | if (ENGINE_ctrl(e, num, 0, (void *)arg, | TRUE | evaluated 736 times by 1 test | | FALSE | never evaluated |
| 0-736 |
| 407 | ((void *)0)| TRUE | evaluated 736 times by 1 test | | FALSE | never evaluated |
| 0-736 |
| 408 | ) > 0| TRUE | evaluated 736 times by 1 test | | FALSE | never evaluated |
) | 0-736 |
| 409 | returnexecuted 736 times by 1 test: return 1; 1;executed 736 times by 1 test: return 1; | 736 |
| 410 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 411 | } | - |
| 412 | | - |
| 413 | | - |
| 414 | | - |
| 415 | | - |
| 416 | | - |
| 417 | | - |
| 418 | if (!(flags & (unsigned int)0x0001)| TRUE | never evaluated | | FALSE | evaluated 736 times by 1 test |
) { | 0-736 |
| 419 | ERR_put_error(38,(171),(110),__FILE__,314) | - |
| 420 | ; | - |
| 421 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 422 | } | - |
| 423 | l = strtol(arg, &ptr, 10); | - |
| 424 | if ((| TRUE | never evaluated | | FALSE | evaluated 736 times by 1 test |
arg == ptr)| TRUE | never evaluated | | FALSE | evaluated 736 times by 1 test |
|| (*| TRUE | never evaluated | | FALSE | evaluated 736 times by 1 test |
ptr != '\0')| TRUE | never evaluated | | FALSE | evaluated 736 times by 1 test |
) { | 0-736 |
| 425 | ERR_put_error(38,(171),(133),__FILE__,320) | - |
| 426 | ; | - |
| 427 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 428 | } | - |
| 429 | | - |
| 430 | | - |
| 431 | | - |
| 432 | | - |
| 433 | if (ENGINE_ctrl(e, num, l, | TRUE | evaluated 736 times by 1 test | | FALSE | never evaluated |
| 0-736 |
| 434 | ((void *)0)| TRUE | evaluated 736 times by 1 test | | FALSE | never evaluated |
| 0-736 |
| 435 | , | TRUE | evaluated 736 times by 1 test | | FALSE | never evaluated |
| 0-736 |
| 436 | ((void *)0)| TRUE | evaluated 736 times by 1 test | | FALSE | never evaluated |
| 0-736 |
| 437 | ) > 0| TRUE | evaluated 736 times by 1 test | | FALSE | never evaluated |
) | 0-736 |
| 438 | returnexecuted 736 times by 1 test: return 1; 1;executed 736 times by 1 test: return 1; | 736 |
| 439 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 440 | } | - |
| | |