Go to file
kre c7c0722af5 Deal with ref after free found by ASAN when a function redefines
itself, or some other function which is still active.
This was a long known bug (fixed ages ago in the FreeBSD sh) which
hadn't been fixed as in practice, the situation that causes the
problem simply doesn't arise .. ASAN found it in the sh dotcmd
tests which do have this odd "feature" in the way they are written
(but where it never caused a problem, as the tests are so simple
that no mem is ever allocated between when the old version of the
function was deleted, and when it finished executing, so its code
all remained intact, despite having been freed.)

The fix is taken from the FreeBSD sh.

XXX -- pullup-8 (after a while to ensure no other problems arise).
2018-06-22 11:04:55 +00:00
bin Deal with ref after free found by ASAN when a function redefines 2018-06-22 11:04:55 +00:00
common Complete previous by complteley removing the _DIAGASSERT from memmove - 2018-02-12 11:14:15 +00:00
compat fix a comment. 2018-02-06 10:00:00 +00:00
crypto Do not reference buffer after the code scope {} 2018-06-16 18:51:36 +00:00
dist/pf fix two issues found by GCC 6.4: 2018-02-04 08:44:36 +00:00
distrib Specify NOSANITIZER in distrib/amd64/ramdisks/common 2018-06-21 11:48:05 +00:00
doc Note import of dhcpcd-7.0.6 2018-06-21 12:02:15 +00:00
etc Add if_vlan directory to lists to fix the build failure 2018-06-15 09:54:02 +00:00
external Sync 2018-06-21 11:58:23 +00:00
extsrc
games Restore the MKGROFF=bo MKCXX=yes build 2018-06-11 14:18:16 +00:00
include Mark in string.h: memccpy(3) and strdup(3) as _POSIX_C_SOURCE >= 2001 2018-02-20 02:35:24 +00:00
lib Disable MKSANITIZER in lib/csu 2018-06-16 18:58:00 +00:00
libexec We can't build those three with MKSANITIZER, they are used too early. 2018-06-09 22:41:55 +00:00
regress Don't test call gates, they are not supported anymore. 2017-08-30 15:46:19 +00:00
rescue Set NOSANITIZER in rescue/Makefile 2018-06-21 10:44:01 +00:00
sbin Remove duplicate assignments. 2018-06-12 20:12:21 +00:00
share Amend MIPS, there are multiple stages in a pipeline. 2018-06-21 23:05:44 +00:00
sys If max-frequency is not specified, use UINT_MAX instead of the rate programmed by the bootloader. 2018-06-22 10:17:04 +00:00
tests Add test case for PR lib/50646. 2018-06-20 03:51:27 +00:00
tools Revert my previous config test inclusion for u_longlong_t. 2018-06-13 04:17:43 +00:00
usr.bin Add new option -s to crunchgen(1) -- enable sanitization 2018-06-21 10:55:54 +00:00
usr.sbin Fix invalid free(3) in sysinst(8) 2018-06-21 23:05:28 +00:00
BUILDING Re-add files that were accidentally deleted in my previous commit. 2018-05-02 07:34:44 +00:00
Makefile Re-add files that were accidentally deleted in my previous commit. 2018-05-02 07:34:44 +00:00
Makefile.inc Re-add files that were accidentally deleted in my previous commit. 2018-05-02 07:34:44 +00:00
UPDATING Re-add files that were accidentally deleted in my previous commit. 2018-05-02 07:34:44 +00:00
build.sh Re-add files that were accidentally deleted in my previous commit. 2018-05-02 07:34:44 +00:00