Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
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
The Tor Project
Core
Tor
Commits
63a42b38
Commit
63a42b38
authored
12 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'public/unsigned-time_t'
parents
66d52b87
01206893
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/warn-unsigned-time_t
+6
-0
6 additions, 0 deletions
changes/warn-unsigned-time_t
src/or/microdesc.c
+2
-2
2 additions, 2 deletions
src/or/microdesc.c
with
8 additions
and
2 deletions
changes/warn-unsigned-time_t
+
6
−
0
View file @
63a42b38
o Minor bugfixes (portability):
- On the chance that somebody manages to build Tor on a
platform where time_t is unsigned, correct the way that
microdesc_add_to_cache handles negative time arguments. Fix for
bug 8042; bugfix on 0.2.3.1-alpha.
o Build improvements:
- Warn if building on a platform with an unsigned time_t: there
are too many places where Tor currently assumes that time_t can
...
...
This diff is collapsed.
Click to expand it.
src/or/microdesc.c
+
2
−
2
View file @
63a42b38
...
...
@@ -135,7 +135,7 @@ get_microdesc_cache(void)
* ending at <b>eos</b>, and store them in <b>cache</b>. If <b>no_save</b>,
* mark them as non-writable to disk. If <b>where</b> is SAVED_IN_CACHE,
* leave their bodies as pointers to the mmap'd cache. If where is
* <b>SAVED_NOWHERE</b>, do not allow annotations. If listed_at is
positive
,
* <b>SAVED_NOWHERE</b>, do not allow annotations. If listed_at is
not -1
,
* set the last_listed field of every microdesc to listed_at. If
* requested_digests is non-null, then it contains a list of digests we mean
* to allow, so we should reject any non-requested microdesc with a different
...
...
@@ -155,7 +155,7 @@ microdescs_add_to_cache(microdesc_cache_t *cache,
descriptors
=
microdescs_parse_from_string
(
s
,
eos
,
allow_annotations
,
copy_body
);
if
(
listed_at
>
0
)
{
if
(
listed_at
!=
(
time_t
)
-
1
)
{
SMARTLIST_FOREACH
(
descriptors
,
microdesc_t
*
,
md
,
md
->
last_listed
=
listed_at
);
}
...
...
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