diff options
author | David Goulet <dgoulet@torproject.org> | 2019-02-13 11:02:02 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-02-13 11:02:02 -0500 |
commit | d5de1a0a5514c51d39f8acdb0c906a186854e681 (patch) | |
tree | 2dbda77a9f42d984f7dfc27fc0d837380766e9e0 /src/lib | |
parent | c320c52e89d0d950f0316d2c2f070f7adca66c80 (diff) | |
parent | bbe417ae8f2eff9b1ec50411dc50d4f0281c1778 (diff) | |
download | tor-d5de1a0a5514c51d39f8acdb0c906a186854e681.tar.gz tor-d5de1a0a5514c51d39f8acdb0c906a186854e681.zip |
Merge branch 'tor-github/pr/651'
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) |