hid-record/dump_events consumes unbounded memory
From inspection of the code, iteration over HidrawDevice.read_events() and HidrawDevice.dump() will allow that device's events[] array to grow without bound; this sort of loop is used by hid-recorder to display incoming events.
This is unlikely to be a significant issue given common rates of HID input events, however it's possible that using hid-recorder (or the hid-tools module) for some sort of diagnostic monitoring task could eventually grow large enough to cause trouble.
It's unclear to me if this was intentional (if there's a specific benefit to keeping the historical events) so I'm not immediately supplying a fix.