diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-08 22:00:57 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-08 22:00:57 +0100 |
commit | 687d60392ec948bc849e2fb7a81c67bbfacd41f6 (patch) | |
tree | 11d3da6a6138f484297fb99bb9868a68a71966e9 /src | |
parent | b9dbe9c6a67661a3c3599602be6620b2ff241dd6 (diff) | |
download | rspamd-687d60392ec948bc849e2fb7a81c67bbfacd41f6.tar.gz rspamd-687d60392ec948bc849e2fb7a81c67bbfacd41f6.zip |
Add notice to fix issue with realloc.
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/http.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c index 0c788cc25..858ca5582 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1535,6 +1535,13 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn, /* Add some used vars */ meth_pos = buf->str + buf->len; + /* XXX: bad bad bad + * TODO: + * XXX: + * Actually, g_string_append_len can break everything as it may do realloc, + * hence, we need to store offsets here instead of the direct pointers + * XXX: fix fix fix + */ if (conn->type == RSPAMD_HTTP_SERVER) { g_string_append_len (buf, repbuf, meth_len); } |