summaryrefslogtreecommitdiffhomepage
path: root/src/test/nxt_tests.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-11-04Removed the unsafe nxt_memcmp() wrapper for memcmp(3).Alejandro Colomar1-1/+1
The casts are unnecessary, since memcmp(3)'s arguments are 'void *'. It might have been necessary in the times of K&R, where 'void *' didn't exist. Nowadays, it's unnecessary, and _very_ unsafe, since casts can hide all classes of bugs by silencing most compiler warnings. The changes from nxt_memcmp() to memcmp(3) were scripted: $ find src/ -type f \ | grep '\.[ch]$' \ | xargs sed -i 's/nxt_memcmp/memcmp/' Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2021-10-26Custom implementation of Base64 decoding function.Valentin Bartenev1-0/+4
Compared to the previous implementation based on OpenSSL, the new implementation has these advantages: 1. Strict and reliable detection of invalid strings, including strings with less than 4 bytes of garbage at the end; 2. Allows to use Base64 strings without '=' padding.
2019-12-06Isolation: allowed the use of credentials with unpriv userns.Tiago Natel1-0/+6
The setuid/setgid syscalls requires root capabilities but if the kernel supports unprivileged user namespace then the child process has the full set of capabilities in the new namespace, then we can allow setting "user" and "group" in such cases (this is a common security use case). Tests were added to ensure user gets meaningful error messages for uid/gid mapping misconfigurations.
2017-11-21Tests: move existing tests to "src" folder.Andrey Zelenkov1-0/+0
2017-10-05Improved applications versions handling.Valentin Bartenev1-0/+4
2017-08-30Lib unit tests have been renamed to tests.Igor Sysoev1-26/+27
2017-07-14Restored arc4random unit test after 59fc46dd5e1d.Ruslan Ermilov1-2/+0
2017-06-19Memory pools refactoring.Igor Sysoev1-3/+6
2017-05-12Fixed building test on SolarisMax Romanov1-1/+1
2017-03-14Fixed unit tests building broken by the previous commit.Igor Sysoev1-0/+3
2017-03-01HTTP parser.Valentin Bartenev1-0/+4
2017-02-22I/O operations refactoring.Igor Sysoev1-4/+0