Skip to content

FORTIFY_SOURCE Compiler Option #617

@efuturetoday

Description

@efuturetoday

Hello all,

I did recently a security audit of an Android Application that is using this library as dependency.
One issue of this report was, that the files in lib/armeabi-v7a/libsqlcipher.so and lib/x86/libsqlcipher.so are not compiled with -D_FORTIFY_SOURCE=2

Recently I did a quick test with a security scanner (checksec) on Ubuntu and could confirm this:
image

Is that true? Do you provide the builds without this compiler flag?
If not, do you think that it should be added due to security reasons?

As far as I know D_FORTIFY_SOURCE will introduce multiple checks to memory management to improve stability and security.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions