Skip to content

null fn check incorrect on release builds #40913

Closed
@rillian

Description

@rillian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language teamregression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions