[Darshan-commits] [Darshan] branch, dev-modular, updated. darshan-2.3.1-182-g200e9d7

Service Account git at mcs.anl.gov
Mon Sep 21 15:05:28 CDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".

The branch, dev-modular has been updated
       via  200e9d71e04cd6bc361cff120f7eb26ef2321a04 (commit)
       via  82b0a5951d254d389daac3fc7a077a37814e3e34 (commit)
      from  dbefada8fb0355f45b76124ae1513e375a059b71 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 200e9d71e04cd6bc361cff120f7eb26ef2321a04
Author: Shane Snyder <ssnyder at mcs.anl.gov>
Date:   Mon Sep 21 15:04:06 2015 -0500

    add more base ld flags needed for cray systems

commit 82b0a5951d254d389daac3fc7a077a37814e3e34
Author: Shane Snyder <ssnyder at mcs.anl.gov>
Date:   Mon Sep 21 15:03:25 2015 -0500

    bug fix in obfuscating darshan file record names

-----------------------------------------------------------------------

Summary of changes:
 darshan-runtime/darshan-base-ld-opts.in |    2 ++
 darshan-util/darshan-convert.c          |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)


Diff of changes:
diff --git a/darshan-runtime/darshan-base-ld-opts.in b/darshan-runtime/darshan-base-ld-opts.in
index 3f02f33..63d34be 100644
--- a/darshan-runtime/darshan-base-ld-opts.in
+++ b/darshan-runtime/darshan-base-ld-opts.in
@@ -1,3 +1,5 @@
+--undefined=MPI_Init
+--undefined=MPI_Wtime
 @@darshan_share_path@/darshan-posix-ld-opts
 @@darshan_share_path@/darshan-hdf5-ld-opts
 @@darshan_share_path@/darshan-pnetcdf-ld-opts
diff --git a/darshan-util/darshan-convert.c b/darshan-util/darshan-convert.c
index 5095ba4..a140fff 100644
--- a/darshan-util/darshan-convert.c
+++ b/darshan-util/darshan-convert.c
@@ -144,16 +144,17 @@ void obfuscate_filenames(int key, struct darshan_record_ref *rec_hash)
 {
     struct darshan_record_ref *ref, *tmp;
     uint32_t hashed;
-    char tmp_string[32];
+    char tmp_string[128] = {0};
 
     HASH_ITER(hlink, rec_hash, ref, tmp)
     {
         hashed = darshan_hashlittle(ref->rec.name, strlen(ref->rec.name), key);
         sprintf(tmp_string, "%u", hashed);
         free(ref->rec.name);
-        ref->rec.name = malloc(strlen(tmp_string));
+        ref->rec.name = malloc(strlen(tmp_string) + 1);
         assert(ref->rec.name);
         memcpy(ref->rec.name, tmp_string, strlen(tmp_string));
+        ref->rec.name[strlen(tmp_string)] = '\0';
     }
 
     return;


hooks/post-receive
--



More information about the Darshan-commits mailing list