[PATCH 6.17 039/175] Input: pegasus-notetaker - fix potential out-of-bounds access