Text   |  XML   |  ReML   |   Visible Warnings:

Use After Free  at client.c:206

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

client_input

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/pop3-login/client.c)expand/collapse
Show more  
 192  void client_input(struct pop3_client *client)
 193  {
 194          char *line, *args;
 195   
 196          i_assert(!client->common.authenticating);
 197   
 198[+]         if (!client_read(client))
 199                  return;
 200   
 201          client_ref(client);
 202   
 203          o_stream_cork(client->output);
 204          /* if a command starts an authentication, stop processing further 
 205             commands until the authentication is finished. */
 206          while (!client->output->closed && !client->common.authenticating &&
 207                 (line = i_stream_next_line(client->common.input)) != NULL) {
 208                  args = strchr(line, ' ');
 209                  if (args != NULL)
 210                          *args++ = '\0';
 211   
 212                  if (client_command_execute(client, line,
 213                                             args != NULL ? args : ""))
 214                          client->bad_counter = 0;
 215                  else if (++client->bad_counter > CLIENT_MAX_BAD_COMMANDS) {
 216                          client_send_line(client, "-ERR Too many bad commands.");
 217                          client_destroy(client,
 218[+]                                        "Disconnected: Too many bad commands");
Show more  




Change Warning 11772.25814 : Use After Free

Priority:
State:
Finding:
Owner:
Note: