aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapi/es2api
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-09-25 10:02:15 -0500
committerJason Ekstrand <[email protected]>2019-09-26 20:36:41 +0000
commit5ca4f574693800c254cfe834ddf2ce28c15d1746 (patch)
treeec06b3b2fd1da966dc1b15740ea7a92fb09b6a01 /src/mapi/es2api
parentf18aad6dc0ac8408bc73f3fbf31b976114a5e1bc (diff)
util/rb_tree: Stop relying on &iter->field != NULL
The old version of the iterators relies on a &iter->field != NULL check which works fine on older GCC but newer GCC versions and clang have optimizations that break if you do pointer math on a null pointer. The correct solution to this is to do the null comparisons before we do any sort of &iter->field or use rb_node_data to do the reverse operation. Acked-by: Michel Dänzer <[email protected]> Tested-by: Michel Dänzer <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mapi/es2api')
0 files changed, 0 insertions, 0 deletions