diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-05-05 02:56:51 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-05-05 02:56:51 +0200 |
commit | a3bfa6f1ab492f1564b7d256f5b31496de3a974d (patch) | |
tree | 2ba97c2b49cb78b276c431af4b3f867a1a89982a /ui/src/main/res/drawable/ic_tile.xml | |
parent | 7778ff63b57f3503904e2619d96279f8a40151aa (diff) |
ui: collect logs from IO thread only
Otherwise the pop() from the producer might causes an OOB read in the
consumer:
Exception java.lang.ArrayIndexOutOfBoundsException:
at androidx.collection.CircularArray.get (CircularArray.java)
at com.wireguard.android.activity.LogViewerActivity.rawLogBytes (LogViewerActivity.java)
at com.wireguard.android.activity.LogViewerActivity.onCreate$lambda$3 (LogViewerActivity.java:133)
at android.view.View.performClick (View.java:6935)
at android.view.View$PerformClick.run (View.java:26214)
at android.os.Handler.handleCallback (Handler.java:790)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:7000)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main/res/drawable/ic_tile.xml')
0 files changed, 0 insertions, 0 deletions