Fix: backported from urcu commit 92af1a30
authorDavid Goulet <dgoulet@efficios.com>
Thu, 28 Nov 2013 19:55:07 +0000 (14:55 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 28 Nov 2013 21:19:39 +0000 (16:19 -0500)
commit843f77ddc3723fbabdee3fc6e4e9c4e44598cc7a
tree8b08cae135808b9ae5e6bd81383346eccb577acc
parentcc46b95e8c4bd34d9dc4e1209524330ae8927fd7
Fix: backported from urcu commit 92af1a30

commit 92af1a30ca6a70945b167c31631c8598a626c71a
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date:   Thu Nov 28 18:41:13 2013 +0100

    Fix undefined NULL pointer arithmetic

    Clang 3.3 with -O2 optimisations is especially picky about arithmetic
    on NULL pointers. This undefined behavior is turned into optimized out
    NULL checks by clang 3.3. Fix the undefined behavior by checking against
    the pointer directly, without going back and forth around NULL with
    pointer arithmetic.

Reported-by: Zifei Tong <soariez@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/hashtable/rculfhash.h
This page took 0.024981 seconds and 4 git commands to generate.