Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-02-23 | Merge remote-tracking branch 'public/bug14988_025' | Nick Mathewson | |
2015-02-23 | add another unused-var marker in backtrace.c for 14988 | Nick Mathewson | |
2015-02-20 | Merge remote-tracking branch 'public/bug11454_11457' | Nick Mathewson | |
2015-02-17 | Check thread count for negative; realloc->reallocarray | Nick Mathewson | |
CID 1268069 | |||
2015-02-16 | Fix a few coverity "Use after NULL check" warnings | Nick Mathewson | |
Also remove the unit test mocks that allowed get_options() to be NULL; that's an invariant violation for get_options(). | |||
2015-02-16 | Fix deadcode warning in get_interface_addresses_raw(). | Nick Mathewson | |
CID 1268070 | |||
2015-02-16 | Fix a trivial double-close in address.c. CID 1268071 | Nick Mathewson | |
2015-02-15 | Don't leak a cond var when starting threads in a pool | Sebastian Hahn | |
2015-02-12 | Merge remote-tracking branch 'sebastian/bug14875' | Nick Mathewson | |
2015-02-12 | Avoid undefined behaviour in ifreq_to_smartlist | Sebastian Hahn | |
This could trigger where _SIZEOF_ADDR_IFREQ() might not return a multiple of sizeof(void *). Fixes bug 14875; not in any released version of Tor. | |||
2015-02-12 | Actually get all interface addresses | Sebastian Hahn | |
If we guessed a buffer size too small, we never increased the buffer and tried again Also simplify the interface of ifreq_to_smartlist a little | |||
2015-02-11 | Merge remote-tracking branch 'public/bug14759' | Nick Mathewson | |
2015-02-11 | Fix crash on glibc __libc_message() | Nick Mathewson | |
__libc_message() tries to open /dev/tty with O_RDWR, but the sandbox catches that and calls it a crash. Instead, I'm making the sandbox setenv LIBC_FATAL_STDERR_, so that glibc uses stderr instead. Fix for 14759, bugfix on 0.2.5.1-alpha | |||
2015-02-11 | Remove mempools and buf freelists | Nick Mathewson | |
They have been off-by-default since 0.2.5 and nobody has complained. :) Also remove the buf_shrink() function, which hasn't done anything since we first stopped using contiguous memory to store buffers. Closes ticket 14848. | |||
2015-02-09 | Merge remote-tracking branch 'sysrqb/bug14802_025' | Nick Mathewson | |
2015-02-09 | Return 0 when detecting the amount of memory fails | Matthew Finkel | |
Fixes bug 14802; bugfix on 0.2.5.4-alpha. | |||
2015-02-06 | Avoid logging startup messages twice | Sebastian Hahn | |
2015-02-05 | use ARRAY_LENGTH macro in domain_to_string | Nick Mathewson | |
2015-02-05 | Add a string representation for LD_SCHED, and a extra sanity check. | Yawning Angel | |
This both fixes the problem, and ensures that forgetting to update domain_list in the future will trigger the bug codepath instead of a NULL pointer deref. | |||
2015-02-02 | Add more parenthesis to the definition of ARRAY_LENGTH | Nick Mathewson | |
2015-02-02 | Merge remote-tracking branch 'public/bug13319' | Nick Mathewson | |
2015-02-02 | Merge remote-tracking branch 'public/14188_part1' | Nick Mathewson | |
2015-01-30 | Fix: check r < 0 before checking errno | David Goulet | |
Signed-off-by: David Goulet <dgoulet@ev0ke.net> | |||
2015-01-30 | Fix possible infinite loop on pipe/sock_drain() | David Goulet | |
If the returned value of read/recv is 0 (meaning EOF), we'll end up in an infinite loop (active wait) until something is written on the pipe which is not really what we want here especially because those functions are called from the main thread. Signed-off-by: David Goulet <dgoulet@ev0ke.net> | |||
2015-01-30 | Merge remote-tracking branch 'public/prop227_v2' | Nick Mathewson | |
Conflicts: src/test/test_dir.c | |||
2015-01-28 | Bug #8405: Report SOCKS username/password in CIRC status events | Arthur Edelstein | |
Introduces two new circuit status name-value parameters: SOCKS_USERNAME and SOCKS_PASSWORD. Values are enclosing in quotes and unusual characters are escaped. Example: 650 CIRC 5 EXTENDED [...] SOCKS_USERNAME="my_username" SOCKS_PASSWORD="my_password" | |||
2015-01-28 | Try to work around changes in openssl 1.1.0 | Nick Mathewson | |
Prefer not to use a couple of deprecated functions; include more headers in tortls.c This is part of ticket 14188. | |||
2015-01-23 | Merge branch 'if_addr_refactoring_squashed' | Nick Mathewson | |
Conflicts: src/test/include.am src/test/test.c | |||
2015-01-23 | Refactor code that looks up addresses from interfaces | rl1987 | |
Now the code has separate implementation and examination functions, uses smartlists sanely, and has relatively decent test coverage. | |||
2015-01-22 | fix some warnings in compat_threads.c | Nick Mathewson | |
2015-01-22 | Move a redundant _GNU_SOURCE to where it is not redundant | Nick Mathewson | |
2015-01-21 | use the correct free fn. spotted by dgoulet | Nick Mathewson | |
2015-01-21 | Merge branch 'better_workqueue_v3_squashed' | Nick Mathewson | |
2015-01-21 | Support monotonic time for pthread_cond_timedwait | David Goulet | |
This is to avoid that the pthread_cond_timedwait() is not affected by time adjustment which could make the waiting period very long or very short which is not what we want in any cases. Signed-off-by: David Goulet <dgoulet@ev0ke.net> | |||
2015-01-21 | Fix up some workqueue/threading issues spotted by dgoulet. | Nick Mathewson | |
2015-01-21 | handle EINTR in compat_*threads.c | Nick Mathewson | |
2015-01-15 | Ignore warning for redundant decl in openssl/srtp.h | Nick Mathewson | |
Backports some commits from tor master. | |||
2015-01-15 | Update workqueue implementation to use a single queue for the work | Nick Mathewson | |
Previously I used one queue per worker; now I use one queue for everyone. The "broadcast" code is gone, replaced with an idempotent 'update' operation. | |||
2015-01-15 | Restrict sample values of the Laplace distribution to int64_t. | George Kadianakis | |
This helps avoid undefined behavior from casting big double values to int64_t. Fixes #14090. | |||
2015-01-14 | Incorporate some comments based on notes from dgoulet | Nick Mathewson | |
2015-01-14 | Refactor cpuworker to use workqueue/threadpool code. | Nick Mathewson | |
2015-01-14 | Fix check-spaces | Nick Mathewson | |
2015-01-14 | Test and fix workqueue_entry_cancel(). | Nick Mathewson | |
2015-01-14 | "Recursive" locks, not "reentrant" locks. Duh. | Nick Mathewson | |
2015-01-14 | Use correct (absolute) time for pthread_cond_timedwait | Nick Mathewson | |
2015-01-14 | Fix windows compilation of condition code | Nick Mathewson | |
2015-01-14 | Fix linux compilation (pipe2 needs _GNU_SOURCE) | Nick Mathewson | |
2015-01-14 | Test a little more of compat_threads.c | Nick Mathewson | |
2015-01-14 | Rename mutex_for_cond -> mutex_nonreentrant | Nick Mathewson | |
We'll want to use these for other stuff too. | |||
2015-01-14 | Documentation for new workqueue and condition and locking stuff | Nick Mathewson | |