mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 10:51:05 +02:00
nhttpd: fix stack buffer overflow
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8303352925
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2018-11-30 (Fri, 30 Nov 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -486,7 +486,8 @@ std::string CySocket::ReceiveLine() {
|
|||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
buffer[++bytes_gotten] = '\0';
|
if (bytes_gotten < MAX_LINE_BUFFER - 1)
|
||||||
|
buffer[++bytes_gotten] = '\0';
|
||||||
result.assign(buffer, bytes_gotten);
|
result.assign(buffer, bytes_gotten);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Reference in New Issue
Block a user