diff options
author | David Goulet <dgoulet@torproject.org> | 2019-02-13 10:56:24 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-02-13 10:56:24 -0500 |
commit | 6efc2a0e1f785e1e12fb8c7fd4b6aa4feceb647a (patch) | |
tree | 46c71ddafc4ff3f6a8c687e4407ffc1a931425df /src/lib | |
parent | 2e770216c498d7e714d1dbd78ab8790e137959f1 (diff) | |
parent | d71ca3968213ea2ed6e30e7a1a5478db759a61e5 (diff) | |
download | tor-6efc2a0e1f785e1e12fb8c7fd4b6aa4feceb647a.tar.gz tor-6efc2a0e1f785e1e12fb8c7fd4b6aa4feceb647a.zip |
Merge branch 'tor-github/pr/650' into maint-0.3.5
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/encoding/time_fmt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/encoding/time_fmt.c b/src/lib/encoding/time_fmt.c index 5b2440d1ab..40543d41e0 100644 --- a/src/lib/encoding/time_fmt.c +++ b/src/lib/encoding/time_fmt.c @@ -39,6 +39,8 @@ * * Convert *<b>timep</b> to a struct tm in local time, and store the value in * *<b>result</b>. Return the result on success, or NULL on failure. + * + * Treat malformatted inputs localtime outputs as a BUG. */ struct tm * tor_localtime_r(const time_t *timep, struct tm *result) @@ -56,6 +58,8 @@ tor_localtime_r(const time_t *timep, struct tm *result) * * Convert *<b>timep</b> to a struct tm in UTC, and store the value in * *<b>result</b>. Return the result on success, or NULL on failure. + * + * Treat malformatted inputs or gmtime outputs as a BUG. */ struct tm * tor_gmtime_r(const time_t *timep, struct tm *result) |