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_set

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/dict/dict-server.c)expand/collapse
Show more  
 273  static int cmd_set(struct dict_client_connection *conn, const char *line)
 274  {
 275          struct dict_server_transaction *trans;
 276          const char *const *args;
 277   
 278          /* <id> <key> <value> */
 279[+]         args = t_strsplit(line, "\t");
 280[+]         if (str_array_length(args) != 3) {
 281                  i_error("dict client: SET: broken input");
 282                  return -1;
 283          }
 284   
 285[+]         if (dict_server_transaction_lookup_parse(conn, args[0], &trans) < 0)
 286                  return -1;
 287   
 288[+]         dict_set(trans->ctx, args[1], args[2]);
expand/collapse

dict_set

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-dict/dict.c)expand/collapse
Show more  
 163  void dict_set(struct dict_transaction_context *ctx,
 164                const char *key, const char *value)
 165  {
 166[+]         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 7714.24516 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: