summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2016-05-04Merge branch 'maint-0.2.8'Nick Mathewson
2016-05-04Merge branch 'bug18686_025' into maint-0.2.8Nick Mathewson
2016-05-04Report success when not terminating an already terminated process.Nick Mathewson
Also, document the actual behavior and return values of tor_terminate_process. Fixes bug18686; bugfix on 0.2.3.9-alpha.
2016-04-25Remove redundant declarations of MINNick Mathewson
Apparently somewhere along the line we decided that MIN might be missing. But we already defined it (if it was missing) in compat.h, which everybody includes. Closes ticket 18889.
2016-04-20Remove trunnel files from libor/libcrypto, since they are in libtrunnel. ↵Nick Mathewson
Found with modularity tool.
2016-04-19Merge branch 'handles_squashed'Nick Mathewson
2016-04-19Basic 'handle' implementation and tests.Nick Mathewson
This abstraction covers the case where one part of the program needs to refer to another object that is allowed to disappear.
2016-04-19Merge remote-tracking branch 'public/lcov_excl'Nick Mathewson
2016-04-15Disambiguate: Avoid defining two static functions called chunk_free_uncheckedNick Mathewson
2016-04-15Add branch prediction to util_bug.h, and fix a bug.Nick Mathewson
2016-04-14Merge branch 'assert_nonfatal_squashed'Nick Mathewson
2016-04-14Add an IF_BUG_ONCE macro, since that's a pretty common pattern too.Nick Mathewson
2016-04-14Add a BUG macro for usage in if checks.Nick Mathewson
2016-04-14Add new tor_assert_nonfatal*() macros.Nick Mathewson
Unlike tor_assert(), these macros don't abort the process. They're good for checking conditions we want to warn about, but which don't warrant a full crash. This commit also changes the default implementation for tor_fragile_assert() to tor_assert_nonfatal_unreached_once(). Closes ticket 18613.
2016-04-12Add LCOV_EXCL* markers to crypto.c and crypto_s2k.cNick Mathewson
This marks some lines as unreachable by the unit tests, and as therefore excluded from test coverage. (Note: This convention is only for lines that are absolutely unreachable. Don't use it anywhere you wouldn't add a tor_fragile_assert().)
2016-04-12Merge branch 'maint-0.2.8'Nick Mathewson
2016-04-12Merge remote-tracking branch 'public/bug18716_027' into maint-0.2.8Nick Mathewson
2016-04-07memarea: Don't assume that sizeof(ulong) >= sizeof(void*).Nick Mathewson
Fixes bug 18716; bugfix on 0.2.1.1-alpha where memarea.c was introduced. Found by wbenny.
2016-04-05Merge branch 'maint-0.2.8'Nick Mathewson
2016-04-05Only define NEW_THREAD_API when not building with LibreSSL.Nick Mathewson
2016-04-05Merge remote-tracking branch 'teor/bug18720'Nick Mathewson
2016-04-05Merge branch 'maint-0.2.8'Nick Mathewson
2016-04-05OpenSSL 1.1.0-pre5-dev and later made BIO opaque.Yawning Angel
Detect newer versions and fix our TLS code to use the new API.
2016-04-05OpenSSL 1.1.0-pre4 and later(?) have a new "thread API".Yawning Angel
It appears that setting the various callbacks is no longer required, so don't.
2016-04-05Fix a comment typo in compat.hteor (Tim Wilson-Brown)
2016-04-04Move tor_assert implementation into its own header/module.Nick Mathewson
2016-03-28Rename tor_dup_addr to tor_addr_to_str_dup.Nick Mathewson
Patch from icanhasaccount; closes 18462.
2016-03-26Do not treat "DOCDOC" as doxygen.Nick Mathewson
2016-03-26add a little documentation to memarea. (I have been testing a tool.)Nick Mathewson
2016-03-26Whitespace fixesNick Mathewson
2016-03-26Fix all doxygen warnings (other than missing docs)Nick Mathewson
2016-03-25Only check in-boundsness of seconds when time_t is smaller than i64Nick Mathewson
Otherwise coverity complains that we're checking an whether an int64 is less than INT64_MIN, which of course it isn't. Fixes CID 1357176. Not in any released Tor.
2016-03-24Merge branch 'timegm_overflow_squashed'Nick Mathewson
2016-03-24Avoid overflow in tor_timegm on 32 bit platforms due to year 2038teor (Tim Wilson-Brown)
2016-03-22Repair build when no sandbox support is enabled.Nick Mathewson
2016-03-22Merge remote-tracking branch 'public/bug18253'Nick Mathewson
2016-03-22Fix an fd leak in check_private_dir().Nick Mathewson
The fd would leak when the User wasn't recogniezed by getpwnam(). Since we'd then go on to exit, this wasn't a terribad leak, but it's still not as nice as no leak at all. CID 1355640; bugfix on no released Tor.
2016-03-15Fix whitespace.Nick Mathewson
2016-03-15Merge remote-tracking branch 'weasel/bug18458'Nick Mathewson
2016-03-14Merge branch 'bug15221_027'Nick Mathewson
2016-03-14Make unix sockets work with the linux seccomp2 sandbox againNick Mathewson
I didn't want to grant blanket permissions for chmod() and chown(), so here's what I had to do: * Grant open() on all parent directories of a unix socket * Write code to allow chmod() and chown() on a given file only. * Grant chmod() and chown() on the unix socket.
2016-03-14Permit setrlimit, prlimit, prlimit64 calls.Nick Mathewson
We call setrlimit under some circumstances, and it can call prlimit and prlimit64 under the hood. Fixes bug 15221.
2016-03-14When using open() to make sure we created a dir, close the fd afterwardsNick Mathewson
Found by coverity. Not in any released Tor. Fixes CID 1355640. Also, don't check for fd correctness with assert(fd). You need to assert (fd >= 0).
2016-03-04Correctly duplicate addresses in get_interface_address6_listteor (Tim Wilson-Brown)
2016-03-04Avoid freeing an uninitialised pointer in get_interface_addresses_ioctlteor (Tim Wilson-Brown)
2016-03-01First RelaxDirModeCheck implementationPeter Palfrader
2016-02-28clean/extend some module docs, including fix from #18403Nick Mathewson
2016-02-27Update the copyright year.Nick Mathewson
2016-02-27It appears I added an empty file by mistake.Nick Mathewson
2016-02-27Add a brief file-level description for everything in src/commonNick Mathewson