]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_dav: Fix error handling for dav_fs_dir_file_name():
authorJoe Orton <jorton@apache.org>
Fri, 14 Feb 2025 16:08:23 +0000 (16:08 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 14 Feb 2025 16:08:23 +0000 (16:08 +0000)
commit1e298ddfca45386ee95e866abf439ed7f022b562
tree6089a1df1b4c066487b423d34c76a32e63e642fa
parentc36a521155cc667cd1e01f1568f3ef5288d9d061
mod_dav: Fix error handling for dav_fs_dir_file_name():

dav_fs_dir_file_name() will not set *fname_p to NULL on failure,
and all callers of dav_fs_dir_file_name() does not check the
return value of dav_fs_dir_file_name(), which could lead to an
undefined behavior against fname_p.

Fix this by adding return value check of dav_fs_dir_file_name()

Submitted by: Zhou Qingyang <zhou1615 umn.edu>
Github: closes #309

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923813 13f79535-47bb-0310-9956-ffa450edef68
modules/dav/fs/repos.c