Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at auth-worker-client.c:514

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

auth_worker_input

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/auth-worker-client.c)expand/collapse
Show more  
 422  static void auth_worker_input(struct auth_worker_client *client)
 423  {
 424          char *line;
 425          bool ret;
 426   
 427[+]         switch (i_stream_read(client->input)) {
 428          case 0:
 429                  return;
 430          case -1:
 431                  /* disconnected */
 432                  auth_worker_client_destroy(&client);
 433                  return;
 434          case -2:
 435                  /* buffer full */
 436                  i_error("BUG: Auth worker server sent us more than %d bytes",
 437                          (int)AUTH_WORKER_MAX_LINE_LENGTH);
 438                  auth_worker_client_destroy(&client);
 439                  return;
 440          }
 441   
 442          client->refcount++;
 443          while ((line = i_stream_next_line(client->input)) != NULL) {
 444                  T_BEGIN {
 445                          ret = auth_worker_handle_line(client, line);
 446                  } T_END;
 447   
 448                  if (!ret) {
 449[+]                         auth_worker_client_destroy(&client);
 450                          break;
 451                  }
 452          }
 453[+]         auth_worker_client_unref(&client);
expand/collapse

auth_worker_client_unref

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/auth-worker-client.c)expand/collapse
Show more  
 510  void auth_worker_client_unref(struct auth_worker_client **_client)
 511  {
 512          struct auth_worker_client *client = *_client;
 513   
 514          if (--client->refcount > 0) {
Show more  
Show more  




Change Warning 7595.24708 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: