Bug #676

NPE on opening stegogram with encrypted message

Added by n8fr8 almost 5 years ago. Updated almost 5 years ago.

Status:ResolvedStart date:02/15/2013
Priority:NormalDue date:
Assignee:harlo% Done:

0%

Category:-
Target version:v1 - "Sailor"
Component:

Description

stegoram is attached. password is "trustthe99". this file was generated from the latest code commits, and seemed to export and encrypt just fine on my 2.3.6 Android device. i opened the file on my 4.1 Galaxy Nexus. same code/build.

E/AndroidRuntime(18846): FATAL EXCEPTION: main
E/AndroidRuntime(18846): java.lang.NullPointerException
E/AndroidRuntime(18846): at info.guardianproject.pixelknot.screens.StegoImageFragment$1.run(StegoImageFragment.java:61)
E/AndroidRuntime(18846): at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime(18846): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(18846): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(18846): at android.app.ActivityThread.main(ActivityThread.java:4745)
E/AndroidRuntime(18846): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(18846): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(18846): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime(18846): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime(18846): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 786): Force finishing activity info.guardianproject.pixelknot/.PixelKnotActivity

1360912935165.jpg - stegogram. password is "trustthe99" (117 KB) n8fr8, 02/15/2013 07:56 am

History

#1 Updated by harlo almost 5 years ago

I was able to successfully decrypt this ("thus is tea")

this is good. i think i know what the problem is! some apps share from the Android/data/package.name/ directories (i.e. Dropbox, K9-Mail, i'm guessing...) which throws an error because PixelKnot cannot access them. Will investigate...

#2 Updated by harlo almost 5 years ago

  • Status changed from New to In Progress

#3 Updated by n8fr8 almost 5 years ago

harlo wrote:

I was able to successfully decrypt this ("thus is tea")

this is good. i think i know what the problem is! some apps share from the Android/data/package.name/ directories (i.e. Dropbox, K9-Mail, i'm guessing...) which throws an error because PixelKnot cannot access them. Will investigate...

Ooooh. Hm. In that case, you should access via ContentProvider stream and not file path, right?

#4 Updated by harlo almost 5 years ago

actually, figured out the problem: uri needed to be properly decoded (i.e. path probably contained a special character like %20)

updated in last commit.

#5 Updated by harlo almost 5 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF