Re: [Qemu-devel] [PATCH] filemon: fix watch IDs to avoid potential wraparound issues

2019-03-19 Thread Bandan Das
Daniel P. Berrangé writes: > Watch IDs are allocated from incrementing a int counter against > the QFileMonitor object. In very long life QEMU processes with > a huge amount of USB MTP activity creating & deleting directories > it is just about conceivable that the int counter can wrap > around.

[Qemu-devel] [PATCH] filemon: fix watch IDs to avoid potential wraparound issues

2019-03-19 Thread Daniel P . Berrangé
Watch IDs are allocated from incrementing a int counter against the QFileMonitor object. In very long life QEMU processes with a huge amount of USB MTP activity creating & deleting directories it is just about conceivable that the int counter can wrap around. This would result in incorrect behaviou