Sysinternals / ProcDump-for-Linux

A Linux version of the ProcDump Sysinternals tool
MIT License
2.94k stars 303 forks source link

Fixed triggers array overflow #132

Closed adamkimsft closed 2 years ago

adamkimsft commented 2 years ago

Increased MAX_TRIGGERS to 10. There's currently 5 triggers. Added error checking in case more than 10 triggers are made inadvertently. Also used modulo operation to prevent array buffer overflow before we exit.

adamkimsft commented 2 years ago

Updated approach for checking max triggers and displaying error message of too many triggers.