mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-25 13:42:54 -05:00
More static analysis fixes
This commit is contained in:
@@ -56,8 +56,8 @@ void xmrig::LineReader::reset()
|
||||
|
||||
void xmrig::LineReader::add(const char *data, size_t size)
|
||||
{
|
||||
if (size > XMRIG_NET_BUFFER_CHUNK_SIZE - m_pos) {
|
||||
// it breakes correctness silently for long lines
|
||||
if (size + m_pos > XMRIG_NET_BUFFER_CHUNK_SIZE) {
|
||||
// it breaks correctness silently for long lines
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user