[gnutls-devel] GnuTLS | WIP: fixed operation under multiple threads (!935)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Feb 25 13:38:29 CET 2019


I agree that an atomic variable would not fix the issue properly, but having a temporary variable sounds like it might trigger some Time-Of-Check-Time-To-Use types bugs, which might be harder to debug.
I don't think there's a way around having a mutex here is you need to check a flag and do some processing depending on the value of that flag, especially if that means updating some states afterward.

That being said, maybe this commit is fine for the time being, as it indeed fixes the observable issue. Another follow up issue could be spawned of out it

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/935#note_144628872
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190225/a98a5090/attachment.html>


More information about the Gnutls-devel mailing list