valgrind error in log compression
Need to see if there is an off-by-one error in darshan or if libz is doing something unusual:
==5852== Invalid read of size 4
==5852== at 0x404A27D: crc32 (in /lib/libz.so.1.2.3.3)
==5852== by 0x404C85A: ??? (in /lib/libz.so.1.2.3.3)
==5852== by 0x404E1BA: ??? (in /lib/libz.so.1.2.3.3)
==5852== by 0x404CB16: deflate (in /lib/libz.so.1.2.3.3)
==5852== by 0x805BF26: cp_log_compress (darshan-mpi-io.c:1687)
==5852== by 0x804C173: darshan_shutdown (darshan-mpi-io.c:429)
==5852== by 0x804C4A6: MPI_Finalize (darshan-mpi-io.c:504)
==5852== by 0x804B430: main (in /home/pcarns/working/darshan-examples/mpi-io-test)
==5852== Address 0x55db614 is 964 bytes inside a block of size 967 alloc'd
==5852== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5852== by 0x805C321: darshan_get_exe_and_mounts (darshan-mpi-io.c:1818)
==5852== by 0x804BC3C: darshan_shutdown (darshan-mpi-io.c:303)
==5852== by 0x804C4A6: MPI_Finalize (darshan-mpi-io.c:504)
==5852== by 0x804B430: main (in /home/pcarns/working/darshan-examples/mpi-io-test)
==5852==
==5852== Invalid read of size 1
==5852== at 0x4026979: memcpy (mc_replace_strmem.c:497)
==5852== by 0x404C6C9: ??? (in /lib/libz.so.1.2.3.3)
==5852== by 0x404E1BA: ??? (in /lib/libz.so.1.2.3.3)
==5852== by 0x404CB16: deflate (in /lib/libz.so.1.2.3.3)
==5852== by 0x805BF26: cp_log_compress (darshan-mpi-io.c:1687)
==5852== by 0x804C173: darshan_shutdown (darshan-mpi-io.c:429)
==5852== by 0x804C4A6: MPI_Finalize (darshan-mpi-io.c:504)
==5852== by 0x804B430: main (in /home/pcarns/working/darshan-examples/mpi-io-test)
==5852== Address 0x55db617 is 0 bytes after a block of size 967 alloc'd
==5852== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==5852== by 0x805C321: darshan_get_exe_and_mounts (darshan-mpi-io.c:1818)
==5852== by 0x804BC3C: darshan_shutdown (darshan-mpi-io.c:303)
==5852== by 0x804C4A6: MPI_Finalize (darshan-mpi-io.c:504)
==5852== by 0x804B430: main (in /home/pcarns/working/darshan-examples/mpi-io-test)