Use dynamically-sized path buffer when scanning files
authorEric Biggers <ebiggers3@gmail.com>
Sun, 16 Jul 2017 06:26:33 +0000 (23:26 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 16 Jul 2017 06:26:33 +0000 (23:26 -0700)
commitf572d61bbd0e33de6b8c540f3b5e89f673cbbfbe
treeefe214a5d62cf4898eb1d112e5c69f7b1195db6d
parent4b9bc7796ea25d5a92a37e4434268b48ab49f579
Use dynamically-sized path buffer when scanning files

This is needed to guarantee that no buffer overflow can occur when
scanning a deep directory structure.  The new way also avoids using
PATH_MAX, which fixes a build error on systems that don't define it.
include/wimlib/scan.h
src/ntfs-3g_capture.c
src/scan.c
src/unix_capture.c
src/update_image.c
src/win32_capture.c