Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uninitialized memory issues in packet table #4271

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

derobins
Copy link
Member

No description provided.

@derobins derobins added Merge - To 1.14 Priority - 2. Medium ⏹ It would be nice to have this in the next release Component - High-Level Library Code in the hl directory Component - Testing Code in test or testpar directories, GitHub workflows Type - Improvement Improvements that don't add a new feature or functionality labels Mar 28, 2024
@derobins
Copy link
Member Author

Testing getting field info                                             PASSED
Uninitialized bytes in __interceptor_pwrite64 at offset 3736 inside [0x72500000a008, 6344)
==505358==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7ffff53168d3 in H5FD__sec2_write /home/derobins/hdf5_devel/hdf5/src/H5FDsec2.c:794:27
    #1 0x7ffff51ac982 in H5FD_write /home/derobins/hdf5_devel/hdf5/src/H5FDint.c:317:9
    #2 0x7ffff4ee2170 in H5F__accum_write /home/derobins/hdf5_devel/hdf5/src/H5Faccum.c:631:29
    #3 0x7ffff64a724a in H5PB_write /home/derobins/hdf5_devel/hdf5/src/H5PB.c:991:13
    #4 0x7ffff4fa54d6 in H5F_block_write /home/derobins/hdf5_devel/hdf5/src/H5Fio.c:218:9
    #5 0x7ffff447c565 in H5C__flush_single_entry /home/derobins/hdf5_devel/hdf5/src/H5Centry.c:597:21
    #6 0x7ffff4678b5e in H5C__flush_ring /home/derobins/hdf5_devel/hdf5/src/H5Cint.c:1748:25
    #7 0x7ffff441e0b7 in H5C_flush_cache /home/derobins/hdf5_devel/hdf5/src/H5C.c:707:17
    #8 0x7ffff4215e94 in H5AC_flush /home/derobins/hdf5_devel/hdf5/src/H5AC.c:619:9
    #9 0x7ffff4f6d308 in H5F__flush_phase2 /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2289:9
    #10 0x7ffff4f60d24 in H5F__dest /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:1419:17
    #11 0x7ffff4f735cc in H5F_try_close /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2628:9
    #12 0x7ffff4f7005b in H5F__close /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2430:9
    #13 0x7ffff79262d2 in H5VL__native_file_close /home/derobins/hdf5_devel/hdf5/src/H5VLnative_file.c:782:13
    #14 0x7ffff77d77a8 in H5VL__file_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:4309:9
    #15 0x7ffff77d5b7a in H5VL_file_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:4340:9
    #16 0x7ffff4f9abb4 in H5F__close_cb /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:217:9
    #17 0x7ffff5a629ef in H5I__dec_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:973:43
    #18 0x7ffff5a6472f in H5I__dec_app_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:1044:22
    #19 0x7ffff5a6336c in H5I_dec_app_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:1089:22
    #20 0x7ffff4e98dec in H5Fclose /home/derobins/hdf5_devel/hdf5/src/H5F.c:1059:9
    #21 0x5555555fcfbd in main /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:1527:5
    #22 0x7ffff3c2814f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #23 0x7ffff3c28208 in __libc_start_main csu/../csu/libc-start.c:360:3
    #24 0x555555573464 in _start (/home/derobins/hdf5_devel/cmake/bin/hl_test_table+0x1f464) (BuildId: 4ba557bc7bc6c4abb876746123c5f28dfea7b494)

  Uninitialized value was stored to memory at
    #0 0x5555555a091e in __msan_memcpy (/home/derobins/hdf5_devel/cmake/bin/hl_test_table+0x4c91e) (BuildId: 4ba557bc7bc6c4abb876746123c5f28dfea7b494)
    #1 0x7ffff539a122 in H5FL_blk_realloc /home/derobins/hdf5_devel/hdf5/src/H5FL.c:1069:13
    #2 0x7ffff4eecd5d in H5F__accum_adjust /home/derobins/hdf5_devel/hdf5/src/H5Faccum.c:376:36
    #3 0x7ffff4edbf6f in H5F__accum_write /home/derobins/hdf5_devel/hdf5/src/H5Faccum.c:459:25
    #4 0x7ffff64a724a in H5PB_write /home/derobins/hdf5_devel/hdf5/src/H5PB.c:991:13
    #5 0x7ffff4fa54d6 in H5F_block_write /home/derobins/hdf5_devel/hdf5/src/H5Fio.c:218:9
    #6 0x7ffff447c565 in H5C__flush_single_entry /home/derobins/hdf5_devel/hdf5/src/H5Centry.c:597:21
    #7 0x7ffff4678b5e in H5C__flush_ring /home/derobins/hdf5_devel/hdf5/src/H5Cint.c:1748:25
    #8 0x7ffff441e0b7 in H5C_flush_cache /home/derobins/hdf5_devel/hdf5/src/H5C.c:707:17
    #9 0x7ffff4215e94 in H5AC_flush /home/derobins/hdf5_devel/hdf5/src/H5AC.c:619:9
    #10 0x7ffff4f6d308 in H5F__flush_phase2 /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2289:9
    #11 0x7ffff4f60d24 in H5F__dest /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:1419:17
    #12 0x7ffff4f735cc in H5F_try_close /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2628:9
    #13 0x7ffff4f7005b in H5F__close /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2430:9
    #14 0x7ffff79262d2 in H5VL__native_file_close /home/derobins/hdf5_devel/hdf5/src/H5VLnative_file.c:782:13
    #15 0x7ffff77d77a8 in H5VL__file_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:4309:9
    #16 0x7ffff77d5b7a in H5VL_file_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:4340:9
    #17 0x7ffff4f9abb4 in H5F__close_cb /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:217:9
    #18 0x7ffff5a629ef in H5I__dec_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:973:43
    #19 0x7ffff5a6472f in H5I__dec_app_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:1044:22

  Uninitialized value was stored to memory at
    #0 0x5555555a091e in __msan_memcpy (/home/derobins/hdf5_devel/cmake/bin/hl_test_table+0x4c91e) (BuildId: 4ba557bc7bc6c4abb876746123c5f28dfea7b494)
    #1 0x7ffff4edc29f in H5F__accum_write /home/derobins/hdf5_devel/hdf5/src/H5Faccum.c:463:21
    #2 0x7ffff64a724a in H5PB_write /home/derobins/hdf5_devel/hdf5/src/H5PB.c:991:13
    #3 0x7ffff4fa54d6 in H5F_block_write /home/derobins/hdf5_devel/hdf5/src/H5Fio.c:218:9
    #4 0x7ffff447c565 in H5C__flush_single_entry /home/derobins/hdf5_devel/hdf5/src/H5Centry.c:597:21
    #5 0x7ffff4678b5e in H5C__flush_ring /home/derobins/hdf5_devel/hdf5/src/H5Cint.c:1748:25
    #6 0x7ffff441e0b7 in H5C_flush_cache /home/derobins/hdf5_devel/hdf5/src/H5C.c:707:17
    #7 0x7ffff4215e94 in H5AC_flush /home/derobins/hdf5_devel/hdf5/src/H5AC.c:619:9
    #8 0x7ffff4f6d308 in H5F__flush_phase2 /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2289:9
    #9 0x7ffff4f60d24 in H5F__dest /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:1419:17
    #10 0x7ffff4f735cc in H5F_try_close /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2628:9
    #11 0x7ffff4f7005b in H5F__close /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2430:9
    #12 0x7ffff79262d2 in H5VL__native_file_close /home/derobins/hdf5_devel/hdf5/src/H5VLnative_file.c:782:13
    #13 0x7ffff77d77a8 in H5VL__file_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:4309:9
    #14 0x7ffff77d5b7a in H5VL_file_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:4340:9
    #15 0x7ffff4f9abb4 in H5F__close_cb /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:217:9
    #16 0x7ffff5a629ef in H5I__dec_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:973:43
    #17 0x7ffff5a6472f in H5I__dec_app_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:1044:22
    #18 0x7ffff5a6336c in H5I_dec_app_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:1089:22
    #19 0x7ffff4e98dec in H5Fclose /home/derobins/hdf5_devel/hdf5/src/H5F.c:1059:9

  Uninitialized value was stored to memory at
    #0 0x5555555a091e in __msan_memcpy (/home/derobins/hdf5_devel/cmake/bin/hl_test_table+0x4c91e) (BuildId: 4ba557bc7bc6c4abb876746123c5f28dfea7b494)
    #1 0x7ffff5d410cc in H5O__cache_chk_serialize /home/derobins/hdf5_devel/hdf5/src/H5Ocache.c:786:5
    #2 0x7ffff44c0ea6 in H5C__generate_image /home/derobins/hdf5_devel/hdf5/src/H5Centry.c:374:9
    #3 0x7ffff447b309 in H5C__flush_single_entry /home/derobins/hdf5_devel/hdf5/src/H5Centry.c:553:17
    #4 0x7ffff4678b5e in H5C__flush_ring /home/derobins/hdf5_devel/hdf5/src/H5Cint.c:1748:25
    #5 0x7ffff441e0b7 in H5C_flush_cache /home/derobins/hdf5_devel/hdf5/src/H5C.c:707:17
    #6 0x7ffff4215e94 in H5AC_flush /home/derobins/hdf5_devel/hdf5/src/H5AC.c:619:9
    #7 0x7ffff4f6d308 in H5F__flush_phase2 /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2289:9
    #8 0x7ffff4f60d24 in H5F__dest /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:1419:17
    #9 0x7ffff4f735cc in H5F_try_close /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2628:9
    #10 0x7ffff4f7005b in H5F__close /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2430:9
    #11 0x7ffff79262d2 in H5VL__native_file_close /home/derobins/hdf5_devel/hdf5/src/H5VLnative_file.c:782:13
    #12 0x7ffff77d77a8 in H5VL__file_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:4309:9
    #13 0x7ffff77d5b7a in H5VL_file_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:4340:9
    #14 0x7ffff4f9abb4 in H5F__close_cb /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:217:9
    #15 0x7ffff5a629ef in H5I__dec_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:973:43
    #16 0x7ffff5a6472f in H5I__dec_app_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:1044:22
    #17 0x7ffff5a6336c in H5I_dec_app_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:1089:22
    #18 0x7ffff4e98dec in H5Fclose /home/derobins/hdf5_devel/hdf5/src/H5F.c:1059:9
    #19 0x5555555fcfbd in main /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:1527:5

  Uninitialized value was stored to memory at
    #0 0x5555555a091e in __msan_memcpy (/home/derobins/hdf5_devel/cmake/bin/hl_test_table+0x4c91e) (BuildId: 4ba557bc7bc6c4abb876746123c5f28dfea7b494)
    #1 0x7ffff5ccad2a in H5O__attr_encode /home/derobins/hdf5_devel/hdf5/src/H5Oattr.c:407:9
    #2 0x7ffff5ca8162 in H5O__attr_shared_encode /home/derobins/hdf5_devel/hdf5/src/H5Oshared.h:123:13
    #3 0x7ffff601df92 in H5O_msg_flush /home/derobins/hdf5_devel/hdf5/src/H5Omessage.c:1974:13
    #4 0x7ffff5d6a853 in H5O__chunk_serialize /home/derobins/hdf5_devel/hdf5/src/H5Ocache.c:1567:17
    #5 0x7ffff5d40cbb in H5O__cache_chk_serialize /home/derobins/hdf5_devel/hdf5/src/H5Ocache.c:779:9
    #6 0x7ffff44c0ea6 in H5C__generate_image /home/derobins/hdf5_devel/hdf5/src/H5Centry.c:374:9
    #7 0x7ffff447b309 in H5C__flush_single_entry /home/derobins/hdf5_devel/hdf5/src/H5Centry.c:553:17
    #8 0x7ffff4678b5e in H5C__flush_ring /home/derobins/hdf5_devel/hdf5/src/H5Cint.c:1748:25
    #9 0x7ffff441e0b7 in H5C_flush_cache /home/derobins/hdf5_devel/hdf5/src/H5C.c:707:17
    #10 0x7ffff4215e94 in H5AC_flush /home/derobins/hdf5_devel/hdf5/src/H5AC.c:619:9
    #11 0x7ffff4f6d308 in H5F__flush_phase2 /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2289:9
    #12 0x7ffff4f60d24 in H5F__dest /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:1419:17
    #13 0x7ffff4f735cc in H5F_try_close /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2628:9
    #14 0x7ffff4f7005b in H5F__close /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:2430:9
    #15 0x7ffff79262d2 in H5VL__native_file_close /home/derobins/hdf5_devel/hdf5/src/H5VLnative_file.c:782:13
    #16 0x7ffff77d77a8 in H5VL__file_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:4309:9
    #17 0x7ffff77d5b7a in H5VL_file_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:4340:9
    #18 0x7ffff4f9abb4 in H5F__close_cb /home/derobins/hdf5_devel/hdf5/src/H5Fint.c:217:9
    #19 0x7ffff5a629ef in H5I__dec_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:973:43

  Uninitialized value was stored to memory at
    #0 0x5555555a091e in __msan_memcpy (/home/derobins/hdf5_devel/cmake/bin/hl_test_table+0x4c91e) (BuildId: 4ba557bc7bc6c4abb876746123c5f28dfea7b494)
    #1 0x7ffff41c00fc in H5A__write /home/derobins/hdf5_devel/hdf5/src/H5Aint.c:879:13
    #2 0x7ffff78cd879 in H5VL__native_attr_write /home/derobins/hdf5_devel/hdf5/src/H5VLnative_attr.c:244:22
    #3 0x7ffff77627f0 in H5VL__attr_write /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:1302:9
    #4 0x7ffff7760b6e in H5VL_attr_write /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:1333:9
    #5 0x7ffff40fef95 in H5A__write_api_common /home/derobins/hdf5_devel/hdf5/src/H5A.c:898:9
    #6 0x7ffff40fce8a in H5Awrite /home/derobins/hdf5_devel/hdf5/src/H5A.c:930:9
    #7 0x7ffff7f9d5ae in H5TBinsert_field /home/derobins/hdf5_devel/hdf5/hl/src/H5TB.c:2242:13
    #8 0x555555614aa2 in test_table /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:1379:13
    #9 0x5555555fcf63 in main /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:1523:9
    #10 0x7ffff3c2814f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16

  Uninitialized value was created by a heap allocation
    #0 0x5555555a76b6 in __interceptor_malloc (/home/derobins/hdf5_devel/cmake/bin/hl_test_table+0x536b6) (BuildId: 4ba557bc7bc6c4abb876746123c5f28dfea7b494)
    #1 0x7ffff7f9a394 in H5TBinsert_field /home/derobins/hdf5_devel/hdf5/hl/src/H5TB.c:2028:50
    #2 0x555555614aa2 in test_table /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:1379:13
    #3 0x5555555fcf63 in main /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:1523:9
    #4 0x7ffff3c2814f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16

SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/derobins/hdf5_devel/hdf5/src/H5FDsec2.c:794:27 in H5FD__sec2_write
Exiting

@derobins
Copy link
Member Author

Testing deleting records                                              Uninitialized bytes in __interceptor_pwrite64 at offset 5 inside [0x714000001a08, 480)
==503658==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7ffff53168d3 in H5FD__sec2_write /home/derobins/hdf5_devel/hdf5/src/H5FDsec2.c:794:27
    #1 0x7ffff51ac982 in H5FD_write /home/derobins/hdf5_devel/hdf5/src/H5FDint.c:317:9
    #2 0x7ffff4ee8813 in H5F__accum_write /home/derobins/hdf5_devel/hdf5/src/H5Faccum.c:821:13
    #3 0x7ffff64a724a in H5PB_write /home/derobins/hdf5_devel/hdf5/src/H5PB.c:991:13
    #4 0x7ffff4fa4166 in H5F_shared_block_write /home/derobins/hdf5_devel/hdf5/src/H5Fio.c:177:9
    #5 0x7ffff48dab38 in H5D__chunk_flush_entry /home/derobins/hdf5_devel/hdf5/src/H5Dchunk.c:4053:13
    #6 0x7ffff489aa74 in H5D__chunk_flush /home/derobins/hdf5_devel/hdf5/src/H5Dchunk.c:3405:13
    #7 0x7ffff4ae8aca in H5D__flush_real /home/derobins/hdf5_devel/hdf5/src/H5Dint.c:3234:51
    #8 0x7ffff4ae00ac in H5D_close /home/derobins/hdf5_devel/hdf5/src/H5Dint.c:1902:13
    #9 0x7ffff790466b in H5VL__native_dataset_close /home/derobins/hdf5_devel/hdf5/src/H5VLnative_dataset.c:826:9
    #10 0x7ffff779de18 in H5VL__dataset_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:2770:9
    #11 0x7ffff779c1ec in H5VL_dataset_close /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:2807:9
    #12 0x7ffff4b31954 in H5D__close_cb /home/derobins/hdf5_devel/hdf5/src/H5Dint.c:298:9
    #13 0x7ffff5a629ef in H5I__dec_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:973:43
    #14 0x7ffff5a6472f in H5I__dec_app_ref /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:1044:22
    #15 0x7ffff5a66d5f in H5I__dec_app_ref_always_close /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:1153:17
    #16 0x7ffff5a65a2c in H5I_dec_app_ref_always_close /home/derobins/hdf5_devel/hdf5/src/H5Iint.c:1194:22
    #17 0x7ffff47a115c in H5Dclose /home/derobins/hdf5_devel/hdf5/src/H5D.c:480:9
    #18 0x7ffff7f73557 in H5TBmake_table /home/derobins/hdf5_devel/hdf5/hl/src/H5TB.c:126:9
    #19 0x55555560496d in test_table /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:623:13
    #20 0x5555555fcf63 in main /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:1521:9
    #21 0x7ffff3c2814f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #22 0x7ffff3c28208 in __libc_start_main csu/../csu/libc-start.c:360:3
    #23 0x555555573464 in _start (/home/derobins/hdf5_devel/cmake/bin/hl_test_table+0x1f464) (BuildId: 86de31f58723ce31d6346be3dadaad0ef60d7d63)

  Uninitialized value was stored to memory at
    #0 0x5555555a091e in __msan_memcpy (/home/derobins/hdf5_devel/cmake/bin/hl_test_table+0x4c91e) (BuildId: 86de31f58723ce31d6346be3dadaad0ef60d7d63)
    #1 0x7ffff79c1067 in H5VM_memcpyvv /home/derobins/hdf5_devel/hdf5/src/H5VM.c:1469:13
    #2 0x7ffff49971b7 in H5D__compact_writevv /home/derobins/hdf5_devel/hdf5/src/H5Dcompact.c:392:26
    #3 0x7ffff4be8182 in H5D__select_io /home/derobins/hdf5_devel/hdf5/src/H5Dselect.c:223:37
    #4 0x7ffff4bea553 in H5D__select_write /home/derobins/hdf5_devel/hdf5/src/H5Dselect.c:482:9
    #5 0x7ffff4897c4e in H5D__chunk_write /home/derobins/hdf5_devel/hdf5/src/H5Dchunk.c:3339:17
    #6 0x7ffff4b63079 in H5D__write /home/derobins/hdf5_devel/hdf5/src/H5Dio.c:825:17
    #7 0x7ffff78f52f4 in H5VL__native_dataset_write /home/derobins/hdf5_devel/hdf5/src/H5VLnative_dataset.c:420:9
    #8 0x7ffff7789b56 in H5VL__dataset_write /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:2236:9
    #9 0x7ffff7787c2e in H5VL_dataset_write_direct /home/derobins/hdf5_devel/hdf5/src/H5VLcallback.c:2280:9
    #10 0x7ffff47c1abf in H5D__write_api_common /home/derobins/hdf5_devel/hdf5/src/H5D.c:1315:9
    #11 0x7ffff47bd3b0 in H5Dwrite /home/derobins/hdf5_devel/hdf5/src/H5D.c:1369:9
    #12 0x7ffff7f73454 in H5TBmake_table /home/derobins/hdf5_devel/hdf5/hl/src/H5TB.c:117:13
    #13 0x55555560496d in test_table /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:623:13
    #14 0x5555555fcf63 in main /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:1521:9
    #15 0x7ffff3c2814f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16

  Uninitialized value was created by an allocation of 'wbufd' in the stack frame
    #0 0x5555555fdfb9 in test_table /home/derobins/hdf5_devel/hdf5/hl/test/test_table.c:231:5

SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/derobins/hdf5_devel/hdf5/src/H5FDsec2.c:794:27 in H5FD__sec2_write
Exiting

@derobins derobins merged commit 8787e7f into HDFGroup:develop Mar 28, 2024
54 checks passed
@derobins derobins deleted the fix_hl_table_uninit_mem branch March 29, 2024 12:06
qkoziol pushed a commit to qkoziol/hdf5 that referenced this pull request Mar 29, 2024
lrknox pushed a commit to lrknox/hdf5 that referenced this pull request Mar 29, 2024
lrknox added a commit that referenced this pull request Mar 29, 2024
* Take user block into account when returning chunk addresses (#4236)

Both H5Dchunk_iter() and H5Dget_chunk_info(_by_coord)() did not take
the size of the user block into account when reporting addresses. Since
the #1 use of these functions is to root around in the file for the raw
data, this is kind of a problem.

Fixes GitHub issue #3003

* Fix a minor warning in h5test.c (#4242)

* Turn on -Werror for Java in GitHub -Werror workflows (#4243)

* Update Windows CI to not install ninja (#4230)

* Rework Fortran macros to use the proper code. (#4240)

* Correct reference copy for 16 API (#4244)

* Determine MPI LOGICAL during build, used in tests. (#4246)

* Skip userblock test in chunk_info.c for multi-file VFDs (#4249)

* Match generators with real cmake -G output on Windows (#4252)

* Add Julia GitHub Actions. (#4123)

* Re-revert to using autoreconf in autogen.sh (#4253)

We previously tried removing the per-tool invocation of the Autotools
and instead simply invoked autoreconf (PR #1906). This was reverted
when it turned out that the NAG Fortran compiler had trouble with an
undecorated -shared linker flag.

It turns out that this is due to a bug in libtool 2.4.2 and earlier.
Since this version of libtool is over a decade old, we're un-reverting
the change. We've added a release note for anyone who has to build
from source on elderly platforms.

Fixes #1343

* Rewrite H5T__path_find_real for clarity (#4225)

* Move conversion path free logic to helper function

* Add tgz extensions on names (#4255)

* Remove an error check regarding large cache objects (#4254)

* Remove an error check regarding large cache objects

In PR#4231 an assert() call was converted to a normal HDF5 error
check. It turns out that the original assert() was added by a
developer as a way of being alerted that large cache objects
existed instead of as a guard against incorrect behavior, making
it unnecessary in either debug or release builds.

The error check has been removed.

* Update RELEASE.txt

* File format security issues (#4234)

* Add job timeout to cygwin workflow (#4260)

* Replace user-define with user-defined (#4261)

* Improve the CMake clang -fsanitize=memory flags (#4267)

-fsanitize=memory is almost useless without
using -fsanitize-memory-track-origins=2 and we shoud probably add
-fno-optimize-sibling-calls as well.

* Add documentation (H5M) (#4259)

* Add documentation (H5P) (#4262)

* MPI type correction (#4268)

* corrected type for MPI_*_f2c APIs

* fixed return type of callback

* reset compilation flags of logical test program

* Clean up test/cmpd_dtransform.c (#4270)

* Clean up test/cmpd_dtransform.c

* Fix uninitialized memory warning from sanitizers
* FAIL_STACK_ERROR --> TEST_ERROR
* Emit output
* Delete test file when done

* Fix typo

* H5Fdelete() --> remove()

* Fix uninitialized memory issues in packet table (#4271)

* replace deprecated CMAKE_COMPILER_IS_GNU** (#4272)

* Prevent stack overflows in H5E__push_stack (#4264)

* Minor fixes after merge of file format security fixes (#4263)

* Update H5_IS_BUFFER_OVERFLOW to account for 'size' of 0

* Invert a few checks to avoid function call

* CHECK --> CHECK_PTR in tmisc.c (#4274)

* Add release note for CVE-2017-17507 (#4275)

* Update Cygwin installation guide (#4265)

* Addresses configuration fortran testing flags (#4276)

* turn warnings to errors in fortran configure test

* Intel fortran test fix

* Merge julia workflows into standard ci format (#4273)

* Fix range check in H5_addr_overlap (#4278)

When the H5_addr_overlap macro was updated to use H5_RANGE_OVERLAP,
it failed to take into account that H5_RANGE_OVERLAP expects the
range to be inclusive. This lead to an assertion failure in
H5MM_memcpy due to a memcpy operation on overlapping memory.
This has been fixed by subtracting 1 from the calculated high
bound values passed to H5_RANGE_OVERLAP

* Fix potential buffer read overflows in H5PB_read (#4279)

H5PB_read previously did not account for the fact that the size of the
read it's performing could overflow the page buffer pointer, depending
on the calculated offset for the read. This has been fixed by adjusting
the size of the read if it's determined that it would overflow the page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - High-Level Library Code in the hl directory Component - Testing Code in test or testpar directories, GitHub workflows Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Improvement Improvements that don't add a new feature or functionality
Projects
Status: Needs Merged
Development

Successfully merging this pull request may close these issues.

3 participants