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

segfault when request_rec->filename is null #29

Open
max-zelinski opened this issue Apr 12, 2014 · 0 comments
Open

segfault when request_rec->filename is null #29

max-zelinski opened this issue Apr 12, 2014 · 0 comments

Comments

@max-zelinski
Copy link

Some modules that shortcut translation handler and don't run uri->filename translation (one of those modules is IBM WebSphere 7 plugin) leave request_rec->filename equals to NULL, which makes mod_xsendfile segfault in ap_xsendfile_get_orginal_path because of ap_strrchr(rv, '/') - where rv is NULL.

The possible solution is to check if request_rec->filename is NULL and assign request_rec->filename = request_rec->uri

Here is an email thread from 2002 explaining this problem a little bit.

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

No branches or pull requests

1 participant