Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at dict.c:101

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

cmd_iterate

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/dict/dict-server.c)expand/collapse
Show more  
 117  static int cmd_iterate(struct dict_client_connection *conn, const char *line)
 118  {
 119          const char *const *args;
 120   
 121          if (conn->iter_ctx != NULL) {
 122                  i_error("dict client: ITERATE: Already iterating");
 123                  return -1;
 124          }
 125   
 126[+]         args = t_strsplit(line, "\t");
 127[+]         if (str_array_length(args) != 2) {
 128                  i_error("dict client: ITERATE: broken input");
 129                  return -1;
 130          }
 131   
 132          /* <flags> <path> */
 133[+]         conn->iter_ctx = dict_iterate_init(conn->dict, args[1], atoi(args[0]));
expand/collapse

dict_iterate_init

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-dict/dict.c)expand/collapse
Show more  
 112  struct dict_iterate_context *
 113  dict_iterate_init(struct dict *dict, const char *path,  
 114                    enum dict_iterate_flags flags)
 115  {
 116[+]         i_assert(dict_key_prefix_is_valid(path));
expand/collapse

dict_key_prefix_is_valid

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-dict/dict.c)expand/collapse
Show more  
 99  static bool dict_key_prefix_is_valid(const char *key)
 100  {
 101          return strncmp(key, DICT_PATH_SHARED, strlen(DICT_PATH_SHARED)) == 0 ||
Show more  
Show more  
Show more  




Change Warning 7713.24823 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: