aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mount.c
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2024-03-05 18:09:33 +0100
committerBernd Schubert <bernd.schubert@fastmail.fm>2024-03-05 23:58:49 +0100
commit9e35addc358375c9228fcc2d5df780e9f4fef164 (patch)
tree5eb506e43c45788329da4dd4ca785c35a7a8461b /lib/mount.c
parent6bda4091d4cc67e8f24cd7cb8dc93d076e115e27 (diff)
downloadlibfuse-9e35addc358375c9228fcc2d5df780e9f4fef164.tar.gz
fusermount: Fix head-buffer-overflow in extract_x_options
Commit 74b1df2e introduced a heap-buffer-overflow, as allocated memory was not initialized and extract_x_options was also not checking for the remaining buffer size. Fix is to initialize the buffer and to also not exceed the buffer size. Actually not exceeding buffer size is rather complex with C and introduced quite some code changes. Also fixed is a memory leak of allocated buffers in the commit mentioned above.
Diffstat (limited to 'lib/mount.c')
0 files changed, 0 insertions, 0 deletions