Closed
Description
Line 383 in a1bbcea
PATH_MAX
is not enough to have as buffer size as it may be the reason of overflow in fgets
used below
Probably, it's better to use something like char buf[PATH_MAX + 128]
...
UPDATE:
Here is the kernel part which generates content of /proc/self/maps
and there are no explicit limits in line length: https://elixir.bootlin.com/linux/latest/source/fs/proc/task_mmu.c#L300
Metadata
Metadata
Assignees
Labels
No labels