apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Bowsher" <m...@ukf.net>
Subject [Bug] apr_dir_make_recursive() on relative path when the cwd has been deleted recurses infinitely => segfault
Date Sat, 24 Sep 2005 16:38:24 GMT
If the current working directory has been deleted (i.e. by another process), 
then apr_dir_make_recursive() recurses infinitely.

In this case, path_remove_last_component() (called in response to ENOENT) 
will eventually reduce the path to an empty string, after which, repeated 
calls to apr_dir_make ("") take place until a resource limit is reached.

apr_dir_make_recursive() needs to detect that it is trying to do a pointless 
action, and give up.


View raw message