[Apple's comment](https://github.com/apple-oss-distributions/IOHIDFamily/blob/19666c840a6d896468416ff0007040a10b7b46b8/IOHIDFamily/IOHIDDevice.cpp#L1601) from the source code when this issue was fixed sums this up nicely:
14
14
15
15
```cpp
16
-
// Find the number of cookies in the data. The data from elementData is shared with user space and may change at any time.
16
+
// Find the number of cookies in the data. The data from elementData is shared with user space and may change at any time.
17
17
```
18
18
19
19
Let us have a look at the function before the patch (I have tried to label relevant lines):