apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland RĂ¼denauer <roland.ruedena...@web.de>
Subject Bug in apr_filepath_root (win32): filepath not zero terminated on return
Date Sun, 24 Oct 2004 22:32:07 GMT
The value of filepath is not \0-terminated on return if it's input value 
is "//" or "\\".
This can be easily reproduced with the following piece of code:

const char *filepath = "//";
const char *rootpath = NULL;
status = apr_filepath_root( &rootpath, &filepath, APR_FILEPATH_TRUENAME, 
pool );
printf( "filepath on return is '%s'", filepath );

Roland

Mime
View raw message