Project *Core Apps » Bazaar » ChatSecure:Android » KeySync » Orbot » Orfox Private Browser » Orweb » Secure ReaderCacheWordIOCipherNetCipherPanicTrusted Intents » CheckeyLibreoSpideyStoryMakerâ„¢SecureSmartCam » CameraV (InformaCam Project) » ObscuraCam
Tracker *Bug Feature Task
Subject *
Description Dear developers of ChatSecureAndroid, I'm a Ph.D. student and I'm doing research on checking data race for Android apps. I found there are data races that may lead to potential bugs in src/info/guardianproject/otr/app/im/app/NewChatActivity.java: The AsyncTask in "startGroupChat" method writes to field "mRequestedChatId" at line 2173. This task is eventually be called by "onLoadFinished" method at line 300 through method "resolveIntent". However, "onLoadFinished" also uses "mRequestedChatId" at lines 301-303. This lead to data race on "mRequestedChatId". Do you think this race may lead to potential bugs? Do you need synchronization on "mRequestedChatId"? "mRequestedChatId" is also written by "startChat" method at line 1944 and 1950, this can also be a race with the written at line 2173. Also, the AsyncTask invokes "showChat" method and "showChat" access the GUI elements "mChatPagerAdapter" and "mChatPager" at line 690 and 700. Android documents say we shouldn't access GUI outside main thread. So this should be a problem. It also leads to a race on these GUI widgets, and the Cursor at line 690, since "mChatPagerAdapter", "mChatPager" and the Cursor is also read/written by main thread. A fix could be put the statements at 690 and 700 into a Handler or runOnUiThread method. Thanks, Yu p.s., I also post this issue in your github issue tracking system, before I notice you probably use this issue tracker.
Status *New
Priority *Low Normal High Urgent Immediate
Assignee << me >>carriestienschrisballingerdbrodchilesdevrandomhansliorn8fr8Anonymous
Target version v14 - Armadillo's Agram v14.2 bug fix update! v14.2.1 v15 - AWESOME APP Backlog
Start date
Due date
Estimated time Hours
% Done0 % 10 % 20 % 30 % 40 % 50 % 60 % 70 % 80 % 90 % 100 %
Component
Files (Maximum size: 195 MB)