https://bugs.kde.org/show_bug.cgi?id=368438

--- Comment #6 from Matt Whitlock <k...@mattwhitlock.name> ---
There is a data-race bug in LanLink.java:

https://github.com/albertvaka/kdeconnect-android/blob/master/src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java#L116

Because LanLink.socket is not declared volatile, the load from this field on
line 116 can see a stale value that was stored before the call to
Thread.sleep(…) on line 115. Declare LanLink.socket volatile to ensure that
loads from it are always fresh from RAM and are never speculated out of program
order.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to