1. 沈 晟
  2. splayer

Commits

Tomasen  committed aadb727

fix: another possible crash

  • Participants
  • Parent commits beb251d
  • Branches default

Comments (0)

Files changed (1)

File src/apps/mplayerc/Controller/AdController.cc

View file
     }
 
     std::vector<unsigned char> st_buffer = net_rqst->get_response_buffer();
+    if (st_buffer.size() <= 15)
+      break;
+
     if (st_buffer[st_buffer.size() - 1] != '\0')
       st_buffer.push_back('\0');