curve25519-java icon indicating copy to clipboard operation
curve25519-java copied to clipboard

Improve stability of primitive array lifecycle

Open MarcSchoenefeld opened this issue 6 years ago • 0 comments

https://github.com/signalapp/curve25519-java/blob/70fae57d6dccff7e78a46203c534314b07dfdd98/android/jni/curve25519-jni.c#L27

According to https://developer.android.com/training/articles/perf-jni , releasing an array requires a prior check to prevent releasing a Null pointer. There are multiple instances of this issue throughout the file.

MarcSchoenefeld avatar Sep 30 '18 20:09 MarcSchoenefeld