Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Benjamin J. Thompson
Tor
Commits
93ddc51c
Commit
93ddc51c
authored
5 years ago
by
Nick Mathewson
Committed by
David Goulet
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Give a more useful failure messgae when we fail to minherit().
Part of ticket 30686.
parent
24a2352d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/crypt_ops/crypto_rand_fast.c
+5
-1
5 additions, 1 deletion
src/lib/crypt_ops/crypto_rand_fast.c
with
5 additions
and
1 deletion
src/lib/crypt_ops/crypto_rand_fast.c
+
5
−
1
View file @
93ddc51c
...
...
@@ -181,7 +181,11 @@ crypto_fast_rng_new_from_seed(const uint8_t *seed)
#else
/* We decided above that noinherit would always do _something_. Assert here
* that we were correct. */
tor_assert
(
inherit
!=
INHERIT_RES_KEEP
);
tor_assertf
(
inherit
!=
INHERIT_RES_KEEP
,
"We failed to create a non-inheritable memory region, even "
"though we believed such a failure to be impossible! This is "
"probably a bug in Tor support for your platform; please report "
"it."
);
#endif
return
result
;
}
...
...
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