Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on get-binding and on exceeded #1

Open
GoogleCodeExporter opened this issue Jan 18, 2016 · 1 comment
Open

Segmentation fault on get-binding and on exceeded #1

GoogleCodeExporter opened this issue Jan 18, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. mkdir /tmp/base /tmp/testquota
2. fusequota mount /tmp/base /tmp/testquota
3. fusequota get-binding /tmp/testquota (or fusequota exceeded /tmp/testquota)

What is the expected output?
I'm not sure what should it be.

What do you see instead?
Segmentation fault

What version of the product are you using? On what operating system?
fusequota-0.2
Arch Linux
http://aur.archlinux.org/packages.php?ID=51489

Original issue reported on code.google.com by ginermail@gmail.com on 13 Aug 2011 at 10:29

@GoogleCodeExporter
Copy link
Author

This occurs because in the strcmp call on line 142 of quota.c 
(http://code.google.com/p/fusequota/source/browse/src/quota.c#142) the first 
argument is null when current_path is root directory. And strcmp causes 
segmentation fault on some platforms when one of the arguments is null.

Original comment by Taran.I...@gmail.com on 5 Dec 2011 at 5:26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant