Nick Mathewson
|
1825674bd3
Fix a memory leak on getaddrinfo in sandbox. Found by coverity
|
11 éve |
Nick Mathewson
|
4ea9fbcdb1
Clean up malloc issues in sandbox.c
|
11 éve |
Nick Mathewson
|
e0b2cd061b
Merge remote-tracking branch 'ctoader/gsoc-cap-stage2'
|
11 éve |
Cristian Toader
|
7cf1b9cc33
fixed compilation bug on i386 due to previous fix
|
11 éve |
Cristian Toader
|
d2836c8780
bug fix: syscalls send and recv not supported for x86_64 with libseccomp 1.0.1
|
11 éve |
Cristian Toader
|
0a3d1685ae
remove debugging code
|
11 éve |
Cristian Toader
|
4702cdc99d
added extra buffer and limit to mprotect not to exceed the length of that buffer
|
11 éve |
Cristian Toader
|
79f94e236b
added filter protection for string parameter memory
|
11 éve |
Cristian Toader
|
8e003b1c69
fixed socket syscall bug
|
11 éve |
Nick Mathewson
|
d91c776f61
Fix check-spaces
|
11 éve |
Nick Mathewson
|
49f9c4924e
Fix compilation on OSX
|
11 éve |
Nick Mathewson
|
e9ec0cb550
Do not try to add non-existent syscalls.
|
11 éve |
Nick Mathewson
|
a6ada1a50c
Fix a warning related to SCMP_CMP definition in header.
|
11 éve |
Nick Mathewson
|
cc35d8be84
Fix most of the --enable-gcc-warnings warnings in the sandbox code
|
11 éve |
Nick Mathewson
|
42e6ab0e14
Remove a usage of free()
|
11 éve |
Nick Mathewson
|
00fd0cc5f9
Basic compilation fixes.
|
11 éve |
Cristian Toader
|
340cca524f
added missing documentation for sandbox functions
|
11 éve |
Cristian Toader
|
6a22b29641
passing hints as a const pointer to sandbox_getaddrinfo(), also one tor_free macro fails to compile..
|
11 éve |
Cristian Toader
|
839ff0063d
replaced strdup with tor_strdup
|
11 éve |
Cristian Toader
|
2a6c34750d
replaced malloc/free with tor_malloc/tor_free
|
11 éve |
Cristian Toader
|
42f5737c81
switched string lengths from int to size_t in prot_strings()
|
11 éve |
Cristian Toader
|
55d8b8e578
fixed bug where sandbox_getaddrinfo() would fail when -Sandbox is 0
|
11 éve |
Cristian Toader
|
b4b0eddd29
switched to a more generic way of handling the sandbox configuration
|
11 éve |
Cristian Toader
|
fe6e2733ab
added contingency message to test for sandbox_getaddrinfo
|
11 éve |
Cristian Toader
|
c584537a03
make check-spaces fix
|
11 éve |
Cristian Toader
|
1ef0b2e1a3
changed how sb getaddrinfo works such that it supports storing multiple results
|
11 éve |
Cristian Toader
|
3e803a1f18
make check-spaces fix
|
11 éve |
Cristian Toader
|
1118bd9910
switched from multiple mmap to one
|
11 éve |
Cristian Toader
|
d5f43b5254
_array filter functions now rely on final NULL parameter
|
11 éve |
Cristian Toader
|
ce04d2a622
replaced boolean char with int
|
11 éve |