tor/src/lib
Alexander Færøy abe7196c53 Strip '\r' characters when reading text files on Unix.
This patch ensures that we strip "\r" characters on both Windows as well
as Unix when we read text files. This should prevent the issue where
some Tor state files have been moved from a Windows machine, and thus
contains CRLF line ending, to a Unix machine where only \n is needed.

We add a test-case to ensure that we handle this properly on all our
platforms.

See: https://bugs.torproject.org/tpo/core/tor/33781
2020-07-14 17:41:51 +00:00
..
arch Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
cc Add a fallthrough macro. 2020-05-06 15:08:02 -04:00
compress Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
container Merge remote-tracking branch 'tor-github/pr/920' into maint-0.3.5 2019-08-09 14:00:01 +10:00
crypt_ops Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:51:11 -04:00
ctime Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
defs Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
encoding pem_decode(): Tolerate CRLF line endings 2020-03-11 10:35:17 -04:00
err backtrace: Check the return values of snprintf() and strncpy() 2019-09-04 13:51:22 +10:00
evloop Do not try to shut down the event loop when it is not initialized. 2019-11-06 11:33:23 -05:00
fdio Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
fs Strip '\r' characters when reading text files on Unix. 2020-07-14 17:41:51 +00:00
geoip Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
intmath Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
lock Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
log Use a tor_abort_() wrapper in our util_bug.h macros 2019-04-15 14:16:23 -04:00
malloc Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
math fp.c: Suppress float-conversion warnings on FreeBSD. 2019-09-10 10:55:44 -04:00
memarea Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
meminfo build: The <sys/sysctl.h> is now deprecated on Linux 2019-09-09 17:07:08 -04:00
net address.c: add a single (harmless) missing break; 2020-05-06 15:08:02 -04:00
osinfo Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
process Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
sandbox Correct how we use libseccomp 2019-12-17 09:47:28 -05:00
smartlist_core Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
string Merge branch 'ticket30561_029' into ticket30561_035 2019-05-29 09:43:20 -04:00
term Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
testsupport Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
thread When initializing pthreads, always set the main thread. 2020-01-06 09:37:12 -05:00
time Merge branch 'ticket31374_029' into ticket31374_035 2019-08-08 11:46:24 -04:00
tls Merge branch 'trove_2020_001_035' into maint-0.3.5 2020-07-09 09:28:36 -04:00
trace Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
wallclock Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
include.libdonna.am Add a configure switch to build with NSS. 2018-07-11 13:22:20 -04:00