1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-31 05:47:43 +03:00
Adrian Ratiu cd897e536f man-generator: initialize struct stat to avoid MSAN error
When building lvm2 in Gentoo/ChromeOS with the ASAN memory
sanitizer enabled, man-generator fails with the following
error. Initializing makes the error go away.

* SUMMARY: MemorySanitizer: use-of-uninitialized-value /build/amd64-generic/tmp/portage/sys-fs/lvm2-2.02.187-r3/work/LVM2.2.02.187/tools/man-generator.c:3316:6 in _include_description_file
* Exiting
* ASAN error detected:
* ==2548047==WARNING: MemorySanitizer: use-of-uninitialized-value
*     #0 0x558b00ab4730 in _include_description_file /build/amd64-generic/tmp/portage/sys-fs/lvm2-2.02.187-r3/work/LVM2.2.02.187/tools/man-generator.c:3316:6
*     #1 0x558b00ab4730 in _print_man /build/amd64-generic/tmp/portage/sys-fs/lvm2-2.02.187-r3/work/LVM2.2.02.187/tools/man-generator.c:3426:21
*     #2 0x558b00ab4730 in main /build/amd64-generic/tmp/portage/sys-fs/lvm2-2.02.187-r3/work/LVM2.2.02.187/tools/man-generator.c:3570:7
*     #0 0x7fa9b2cbb807 in find_derivation /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.33-r8/work/glibc-2.33/iconv/gconv_db.c:583:15
*     #1 0x558b00a29559 in ?? ??:0
*
*   Uninitialized value was created by an allocation of 'statbuf.i.i' in the stack frame of function 'main'
*     #0 0x558b00ab1d4d in main /build/amd64-generic/tmp/portage/sys-fs/lvm2-2.02.187-r3/work/LVM2.2.02.187/tools/man-generator.c:3505
2021-09-13 12:34:41 +02:00
..
2021-06-11 13:27:18 -05:00
2016-01-21 12:11:37 +01:00
2016-01-21 12:11:37 +01:00
2017-03-28 16:11:35 +01:00
2021-09-13 12:34:41 +02:00
2021-06-28 20:41:07 +02:00
2016-01-21 12:11:37 +01:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2020-10-20 22:22:52 +02:00
2016-01-21 12:11:37 +01:00
2021-03-22 11:37:19 +01:00
2020-10-20 22:22:52 +02:00
2018-12-04 14:06:46 -06:00
2016-01-21 12:11:37 +01:00
2018-07-11 11:26:42 -05:00
2021-09-06 14:00:20 +02:00
2021-08-16 11:31:15 -05:00
2021-08-16 11:31:15 -05:00
2021-02-23 16:43:32 -06:00
2016-01-21 12:11:37 +01:00
2021-06-09 14:56:13 +02:00
2019-06-25 15:39:08 -05:00
2021-08-16 11:31:15 -05:00
2020-09-01 17:57:50 +02:00
2016-01-21 12:11:37 +01:00
2018-06-13 14:14:03 -05:00
2016-01-21 12:11:37 +01:00
2021-09-13 12:34:41 +02:00
2021-04-19 14:40:14 +02:00
2021-07-21 13:19:51 +02:00
2021-08-16 11:31:15 -05:00