Re: [PATCH] include: detect use-after-free errors using the reference counts

2014-08-31 Thread Samuel Thibault
Ack. Justus Winter, le Sun 31 Aug 2014 19:59:48 +0200, a écrit : > * include/refcount.h (refcount_init): There must be at least one > reference at initialization time. > (refcounts_init): Likewise. > (refcount_unsafe_ref): New function retaining the previous > functionality of refcount_ref. It is

[PATCH] include: detect use-after-free errors using the reference counts

2014-08-31 Thread Justus Winter
* include/refcount.h (refcount_init): There must be at least one reference at initialization time. (refcounts_init): Likewise. (refcount_unsafe_ref): New function retaining the previous functionality of refcount_ref. It is occasionally useful to raise the reference count again after it dropped to