Closed
Description
Testing Firefox against rustc 1.17.0-nightly (ccce2c6 2017-03-27) I have a unit test failure where it looks like a nullptr check on a function pointer in a struct passed over FFI doesn't work correctly. The failing test is supposed to check for a null callback function pointer and return null in that case. Instead it returns an allocated context object.
One can verify with ./mach gtest rust.MP4MetadataEmpty
with ac_add_options --enable-optimize
in mozconfig.
See also https://bugzilla.mozilla.org/show_bug.cgi?id=1351497