brauner / mount-idmapped

46 stars 11 forks source link

Add missing / characters for some proc paths #12

Closed sforshee closed 9 months ago

sforshee commented 9 months ago

In some cases when calculating path lengths or comparing paths "/proc" is used without a trailing /. This results in a off-by-one errors for string buffers which could result in a buffer overrun and a failure to correctly identify proc paths passed in via --map-mount.

brauner commented 9 months ago

Thank you!