Skip to content

Found Native methods with no matching symbols #191

Description

@rupeshkoushik07

I have done bytecode analysis for JFFI and found that there are native methods which donot have any symbols present in any of the libraries

Example (Foreign.java declares native but the symbol is not exported by
either jffi-1.2 or jffi-1.3.11 in this repo):

com.kenai.jffi.Foreign.newNativeMethod
com.kenai.jffi.Foreign.freeNativeMethod
com.kenai.jffi.Foreign.compileNativeMethods
com.kenai.jffi.Foreign.freeCompiledMethods
com.kenai.jffi.Foreign.registerNativeMethods
com.kenai.jffi.Foreign.unregisterNativeMethods
com.kenai.jffi.Foreign.invokeArrayWithObjectsReturnObject

The native declarations exist in Foreign.class but the C implementations are gated on a build flag that is off in every Linux build shipped via JNR-FFI/JNA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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