diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-02-13 09:39:46 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-02-14 16:38:47 -0500 |
commit | c4f2faf3019f2c41f9c3b2b8a73b4fe41e881328 (patch) | |
tree | ddb5cd77c06a5dda60a8f7683bcd6b2ce506c601 /src/or/buffers.h | |
parent | 4a2afd5b33f02ed3e5eb591dd29537fa4f69399f (diff) | |
download | tor-c4f2faf3019f2c41f9c3b2b8a73b4fe41e881328.tar.gz tor-c4f2faf3019f2c41f9c3b2b8a73b4fe41e881328.zip |
Don't atoi off the end of a buffer chunk.
Fixes bug 20894; bugfix on 0.2.0.16-alpha.
We already applied a workaround for this as 20834, so no need to
freak out (unless you didn't apply 20384 yet).
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r-- | src/or/buffers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h index 52b21d5885..9762cf2af2 100644 --- a/src/or/buffers.h +++ b/src/or/buffers.h @@ -97,5 +97,10 @@ struct buf_t { }; #endif +#ifdef BUFFERS_PRIVATE +int buf_http_find_content_length(const char *headers, size_t headerlen, + size_t *result_out); +#endif + #endif |