Skip to content

Commit b12cdb9

Browse files
committed
memetastic
1 parent bbcac32 commit b12cdb9

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed

_includes/videopages/type1/memetastic.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<div class="col s12 tag-div">
1+
<!-- <div class="col s12 tag-div">
22
<div class="user-content">
33
<p>
44
Description of this bug.
55
</p>
66
</div>
7-
</div>
7+
</div> -->
88

99
<!-- <embed src="/assets/res/videos/NoteBuddy_v1.3.2.mp4" autostart="false"/> -->
1010

memetastic.md

+43-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,49 @@ css: ["projects.css"]
88

99
| Device Name | Android Version | App Name | App Version |
1010
|:--------------------:|:---------------:|:--------------:|:-----------:|
11-
| Samsung Galaxy Note4 | 6.0.1 | EtchDroid | 1.5 |
11+
| Samsung Galaxy Note4 | 6.0.1 | MemeTastic | 1.6.7 |
1212

1313
---
1414

15-
{% include videopages/type1/memetastic.html %}
15+
{% include videopages/type1/memetastic.html %}
16+
17+
##### Description
18+
The calling context has a permission check, but the returned file path is read/write without check, thus a crash happens when re-entering the app, when the `onResume` is invoked.
19+
20+
Reproduce crash:
21+
22+
1. enter the app from the home screen and allow the permission request
23+
2. choose one meme item and enter the ``create meme activity''
24+
3. go to system setting and revoke the storage permission
25+
4. go back to the app and it crashes
26+
27+
##### Aper Outputs
28+
```
29+
API:
30+
<android.os.Environment: java.io.File getExternalStorageDirectory()>
31+
---
32+
PERMISSIONS:
33+
[android.permission.READ_EXTERNAL_STORAGE,android.permission.WRITE_EXTERNAL_STORAGE]
34+
---
35+
CALLCHAIN:
36+
net.gsantner.memetastic.activity.MemeCreateActivity.onResume()void
37+
net.gsantner.memetastic.activity.MemeCreateActivity.initMemeSettings(android.os.Bundle)boolean
38+
net.gsantner.memetastic.activity.MemeCreateActivity.extractBitmapFromIntent(android.content.Intent)android.graphics.Bitmap
39+
net.gsantner.opoc.util.ShareUtil.extractFileFromIntent(android.content.Intent)java.io.File
40+
android.os.Environment.getExternalStorageDirectory()java.io.File
41+
42+
======
43+
44+
DANGEROUS: android.permission.READ_EXTERNAL_STORAGE
45+
Is Declared: true
46+
Check Sites: NONE
47+
Request Sites: NONE
48+
Has Handle: in <net.gsantner.memetastic.activity.MemeCreateActivity: void onRequestPermissionsResult(int,java.lang.String[],int[])>
49+
50+
---
51+
DANGEROUS: android.permission.WRITE_EXTERNAL_STORAGE
52+
Is Declared: true
53+
Check Sites: in <net.gsantner.memetastic.service.AssetUpdater$LoadAssetsThread: void run()>
54+
Request Sites: NONE
55+
Has Handle: in <net.gsantner.memetastic.activity.MemeCreateActivity: void onRequestPermissionsResult(int,java.lang.String[],int[])>
56+
```

0 commit comments

Comments
 (0)