Revert "Fixed a potential buffer overflow in xmpp_stanza_to_text when the stanza length was greater than the default buffer size of 1024. Tested on Windows only."
This reverts commit 4b194b98cf.
This commit is contained in:
@@ -398,7 +398,7 @@ int xmpp_stanza_to_text(xmpp_stanza_t *stanza,
|
||||
return XMPP_EMEM;
|
||||
}
|
||||
|
||||
ret = _render_stanza_recursive(stanza, buffer, length - 1);
|
||||
ret = _render_stanza_recursive(stanza, buffer, length);
|
||||
if (ret < 0) return ret;
|
||||
|
||||
if (ret > length - 1) {
|
||||
|
||||
Reference in New Issue
Block a user