Skip to content

Conversation

@Mohawi
Copy link

@Mohawi Mohawi commented May 17, 2019

-> introduce relocateCounter in dir_compact to catch infinite loop when
lfs has no free space left anymore
-> call lfs_dir_fetchmatch with ftag=-1 in order to set the invalid bit
and never let the function match a dir

Fixes:

#177
#184

-> introduce relocateCounter in dir_compact to catch infinite loop when
   lfs has no free space left anymore
-> call lfs_dir_fetchmatch with ftag=-1 in order to set the invalid bit
   and never let the function match a dir
@Mohawi Mohawi changed the title prepare upstream bugfix of lfs fix endless loop in dir_compact and nullptr access in lfs_dir_fetchmatch May 17, 2019
@geky
Copy link
Member

geky commented Nov 26, 2019

Hi @Mohawi, thanks for creating a PR. Sorry it's taken so long for me to get to this.

I'm not sure yet the best way to handle for the possible infinite-loops. For now I've split out the null-pointer exception into a separate PR and rebased it onto master:
#337

It looks good to me, so I will merge it when I can

geky added a commit that referenced this pull request Dec 1, 2019
fix nullptr access in lfs_dir_fetchmatch (#185)
@geky
Copy link
Member

geky commented Feb 24, 2020

Ok! I've now added proper loop checking in #372. Hopefully this takes care of the issues you've ran into.

Sorry about butchering your PR like this. Thanks again for the contribution. It's very useful to know what issues/fixes everyone is looking for.

I will close this when #372 is merged.

@geky geky closed this Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants