tests/clar/sandbox.h


Log

Author Commit Date CI Message
lhchavez 212ae9a7 2020-12-21T06:48:48 Fix the `-DENABLE_WERROR=ON` build for gcc 10.2 This change makes it possible to build with newer versions of gcc without warnings. There were two warnings issued: * gcc 8 added [`-Wstringop-truncation`](https://developers.redhat.com/blog/2018/05/24/detecting-string-truncation-with-gcc-8/), which warns if a call to `strncpy(3)` is prone to accidentally truncating the destination string, since `strncpy(3)` does NOT add a terminating `NULL` if the destination buffer is not large enough to hold the input. This change uses the pattern suggested in https://us-cert.cisa.gov/bsi/articles/knowledge/coding-practices/strncpy-and-strncat to fix the locations flagged by gcc. * There was a potentially uninitialized access of `dest` in `fs_copy`.
Matt Keeler 45a3b9cd 2018-04-24T17:12:49 tests: fix issue with /tmp paths on macOS[1]
Edward Thomson eadf3715 2015-06-29T22:10:45 clar: test chdir
Edward Thomson 29eed1c7 2014-10-24T10:50:57 clar: use a custom temp directory name
Edward Thomson 10be94e9 2014-03-28T10:09:13 Update clar to 587f88a
Ben Straub 17820381 2013-11-14T14:05:52 Rename tests-clar to tests