markfasheh / duperemove

Tools for deduping file systems
GNU General Public License v2.0
816 stars 81 forks source link

Fix out-of-bounds access to fm_extents when reading next part of fiemap #212

Closed cuihaoleo closed 5 years ago

cuihaoleo commented 5 years ago

This should fix #211 .

I am not familiar with kernel stuff. I referred to https://github.com/ColinIanKing/fiemap and thought that previous code reads the address of the next part fiemap from the wrong place.

I also update the .gitignore to include more compiled binaries.

markfasheh commented 5 years ago

Hi, thanks this looks pretty good. I'll give it a whirl in the morning and if things test out this will get pulled - thanks!