Skip to content

Commit

Permalink
Fix buffer overflow in CString::AppendFmtV (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
B4dM4n authored Mar 25, 2024
1 parent c93b551 commit c8c5927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/util/NString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void CString::AppendFmtV(const char* format, va_list ap)

m_data = newData;

vsnprintf(m_data + curLen, newLen + 1, format, ap2);
vsnprintf(m_data + curLen, addLen + 1, format, ap2);

va_end(ap2);
}
Expand Down

0 comments on commit c8c5927

Please sign in to comment.