Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
f9812ee5
Unverified
Commit
f9812ee5
authored
Nov 25, 2019
by
teor
Browse files
Merge remote-tracking branch 'tor-github/pr/1394' into maint-0.3.5
parents
7beaaed2
ff304f3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug31939
0 → 100644
View file @
f9812ee5
o Minor bugfixes (tls, logging):
- Log TLS read buffer length bugs once, rather than filling the logs
with similar warnings. Fixes bug 31939; bugfix on 0.3.0.4-rc.
src/lib/tls/buffers_tls.c
View file @
f9812ee5
...
...
@@ -68,9 +68,9 @@ buf_read_from_tls(buf_t *buf, tor_tls_t *tls, size_t at_most)
check_no_tls_errors
();
if
(
BUG
(
buf
->
datalen
>=
INT_MAX
)
)
IF_BUG_ONCE
(
buf
->
datalen
>=
INT_MAX
)
return
-
1
;
if
(
BUG
(
buf
->
datalen
>=
INT_MAX
-
at_most
)
)
IF_BUG_ONCE
(
buf
->
datalen
>=
INT_MAX
-
at_most
)
return
-
1
;
while
(
at_most
>
total_read
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment