freebsd-nq/include
Brian Behlendorf bb01879ebe Coverity 9654, 9654: Use After Free
Because vmem_free() was implemented as a macro using the ','
operator to evaluate both arguments and we performed the free
before evaluating size we would deference the free'd pointer.
To resolve the problem we just invert the ordering and evaluate
size first just as if it was evaluated by the caller when being
passed to this function.  This ensure that if the caller is
doing something reckless like performing an assignment as
part of the size argument we still perform it and it simply
doesn't get removed by the macro.  Oh course nobody should
be doing this sort of thing, but just in case.
2009-02-17 16:51:19 -08:00
..
asm Build system update 2009-02-12 14:45:22 -08:00
fs Build system update 2009-02-12 14:45:22 -08:00
linux Build system update 2009-02-12 14:45:22 -08:00
rpc Build system update 2009-02-12 14:45:22 -08:00
sharefs Build system update 2009-02-12 14:45:22 -08:00
sys Coverity 9654, 9654: Use After Free 2009-02-17 16:51:19 -08:00
util Build system update 2009-02-12 14:45:22 -08:00
vm Build system update 2009-02-12 14:45:22 -08:00
Makefile.am Build system update 2009-02-12 14:45:22 -08:00
Makefile.in Build system update 2009-02-12 14:45:22 -08:00
spl-ctl.h Go through and add a header with the proper UCRL number. 2008-05-26 04:38:26 +00:00
spl-device.h Sigh more compat fixes, this is almost right for 2.6.9 - 2.6.26 kernels. 2008-08-11 23:47:44 +00:00
splat-ctl.h Coverity 9641: Buffer Size 2009-02-17 16:24:26 -08:00
strings.h More stub headers, 2008-03-04 18:22:31 +00:00
unistd.h More stub headers, 2008-03-04 18:22:31 +00:00