Skip to content

EXC_BAD_ACCESS when running example app on iOS #1

@mattsoftware

Description

@mattsoftware

Running the code on the native mac example app works perfectly.

Running the example app for iOS performs an EXC_BAD_ACCESS on both device and simulator.

Problem seems to be in the TISSLCertificateMaker::_extractAndSaveDataType:aType...

RSA_print_fp(filePointer,_privateKey->pkey.rsa,0);

The method first creates an NSPipe object, then calls the RSA_print_fp() method to write the private key to the pipe, then reads the data from the pipe. I am not an expert in openssl (I find the lack of documentation creates a high barrier to entry) and have reached the end of my ability to debug any further.

One thing I have seen online is that the buffer for the NSPipe might be getting filled. In which case the call to RSA_print_fp must be called on a background thread, and its output consumed continuously until EOF. However I am not able to get this working as yet.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions