diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-01-23 14:50:22 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-01-23 14:50:22 -0500 |
commit | d23704bf26ae6c00e97fb0c3ceb4a362c49eaf07 (patch) | |
tree | c0b2fe52c2ace1790000b8b63a213d3bc13690f7 /src/lib/encoding | |
parent | 3da3aca08f022f6c1e33a06afe4e30804754d005 (diff) | |
parent | 2d74da3d0efd7a67f9bdb73145c38fe047faf1f8 (diff) | |
download | tor-d23704bf26ae6c00e97fb0c3ceb4a362c49eaf07.tar.gz tor-d23704bf26ae6c00e97fb0c3ceb4a362c49eaf07.zip |
Merge branch 'ticket28668_035' into ticket28668_040
Diffstat (limited to 'src/lib/encoding')
-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) |