Fix buffer overflow in authenticate.

This commit is contained in:
Hopperpop 2016-03-18 22:34:18 +01:00
parent 024add39d3
commit 046716556e
1 changed files with 1 additions and 1 deletions

View File

@ -673,7 +673,7 @@ void AsyncWebServerRequest::sendChunked(String contentType, AwsResponseFiller ca
bool AsyncWebServerRequest::authenticate(const char * username, const char * password){
if(_authorization.length()){
char toencodeLen = os_strlen(username)+os_strlen(password)+1;
char *toencode = new char[toencodeLen];
char *toencode = new char[toencodeLen+1];
if(toencode == NULL){
return false;
}