pmem / syscall_intercept

The system call intercepting library
Other
631 stars 116 forks source link

Support long lines in /proc/self/maps #109

Closed vancemiller closed 3 years ago

vancemiller commented 3 years ago

The fgets call from allocate_trampoline_table in intercept_desc.c uses a fixed-size line buffer. If entries in /proc/self/maps are longer than 0x100 characters the sscanf code fails to parse the line correctly, since fgets will return the remainder of the previous line.