Skip to content

Coverity: null pointer dereference when #method_missing is undefined #2878

@cremno

Description

@cremno

Just open mirb and paste the following code:

undef method_missing
oops

I have a possible fix but maybe there's a better one (maybe a statically allocated struct RProc* is okay?).

https://github.com/mruby/mruby/compare/mruby:master...cremno:fix-null-ptr-deref-when-method-missing-is-undef?expand=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions