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_unset

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/dict/dict-server.c)expand/collapse
Show more  
 292  static int cmd_unset(struct dict_client_connection *conn, const char *line)
 293  {
 294          struct dict_server_transaction *trans;
 295          const char *const *args;
 296   
 297          /* <id> <key> */
 298[+]         args = t_strsplit(line, "\t");
 299[+]         if (str_array_length(args) != 2) {
 300                  i_error("dict client: UNSET: broken input");
 301                  return -1;
 302          }
 303   
 304[+]         if (dict_server_transaction_lookup_parse(conn, args[0], &trans) < 0)
 305                  return -1;
 306   
 307[+]         dict_unset(trans->ctx, args[1]);
expand/collapse

dict_unset

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-dict/dict.c)expand/collapse
Show more  
 172  void dict_unset(struct dict_transaction_context *ctx,
 173                  const char *key)
 174  {
 175[+]         i_assert(dict_key_prefix_is_valid(key));
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 7715.24517 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: