Re:Xiaomi camera playing on Google home hub sends stills fro...
by jdmg94 on Thursday January 02, 2020 @01:08PM
(#21937942)
How could this be a race condition? if you ask for a specific stream channel why would you get other stream channels? even if its for a thumbnail preview, the software behind this has to be a clusterfuck to begin with
[ Parent
| on HN ]
Re:Xiaomi camera playing on Google home hub sends stills fro...
by robryk on Thursday January 02, 2020 @02:03PM
(#21938556)
E.g. there could be a cache that (incorrectly) returns a reference to a cache item without any locks being held by the client and reuses cache items on eviction. Then if an eviction happens before the client is done with an item, there is a data race between the client reading the item and the item being updated into the new, unrelated, cache entry.
Although, if that were the case, I'd expect various partial mismatches to also happen.