Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon: Fix DrMemory hit in |bitmap_intersect()|
Fix DrMemory hit in |bitmap_intersect()|, which happened because arr mask data were accessed beyond the maximum index specified by |bitmap4.count|. Example: ---- snip ---- Error #1: UNINITIALIZED READ: reading 4 byte(s) 0 bitmap_intersect [ms-nfs41-client\daemon\util.h:123] 1 nfs41_superblock_supported_attrs [ms-nfs41-client\daemon\nfs41.h:491] 2 nfs41_open [ms-nfs41-client\daemon\nfs41_ops.c:535] 3 do_open [ms-nfs41-client\daemon\open.c:311] 4 open_or_delegate [ms-nfs41-client\daemon\open.c:352] 5 handle_open [ms-nfs41-client\daemon\open.c:972] 6 upcall_handle [ms-nfs41-client\daemon\upcall.c:220] 7 nfsd_worker_thread_main [ms-nfs41-client\daemon\nfs41_daemon.c:201] 8 nfsd_thread_main [ms-nfs41-client\daemon\nfs41_daemon.c:239] 9 KERNEL32.dll!BaseThreadInitThunk +0x13 (0x00007ffbfeca7374 <KERNEL32.dll+0x17374>) ---- snip ---- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com> Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
- Loading branch information