Sysinternals / ProcDump-for-Linux

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

CreateTriggerThreads function maybe has array overflow #128

Closed evazhuang closed 2 years ago

evazhuang commented 2 years ago

The variable “pthread_t Threads[MAX_TRIGGERS]” of struct ProcDumpConfiguration is maybe overflow。 The value of MAX_TRIGGERS is 3. But the function CreateTriggerThreads can create over 3 threads. When I use cmd "procdump -C 10 -M 2 -F 10 -T 2 -p 27797 -d", it can not generat the core dump.

MarioHewardt commented 2 years ago

Fixed.