Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jarl
tor
Commits
33286587
Commit
33286587
authored
8 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'asn/bug19223'
parents
4f169a02
e59f0d4c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug19223
+4
-0
4 additions, 0 deletions
changes/bug19223
src/or/routerkeys.c
+2
-2
2 additions, 2 deletions
src/or/routerkeys.c
with
6 additions
and
2 deletions
changes/bug19223
0 → 100644
+
4
−
0
View file @
33286587
o Minor bugfixes (getpass):
- Defensively fix a non-triggerable heap corruption at do_getpass() tow
protect ourselves from mistakes in the future. Fixes bug #19223; bugfix
on 0.2.7.3-rc. Bug found by Guido Vranken, patch by nherring.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/or/routerkeys.c
+
2
−
2
View file @
33286587
...
...
@@ -48,8 +48,8 @@ do_getpass(const char *prompt, char *buf, size_t buflen,
size_t
p2len
=
strlen
(
prompt
)
+
1
;
if
(
p2len
<
sizeof
(
msg
))
p2len
=
sizeof
(
msg
);
prompt2
=
tor_malloc
(
strlen
(
prompt
)
+
1
);
memset
(
prompt2
,
' '
,
p2len
);
prompt2
=
tor_malloc
(
p2len
);
memset
(
prompt2
,
' '
,
p2len
-
sizeof
(
msg
)
);
memcpy
(
prompt2
+
p2len
-
sizeof
(
msg
),
msg
,
sizeof
(
msg
));
buf2
=
tor_malloc_zero
(
buflen
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment