diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2015-01-02 16:24:14 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2015-01-02 16:24:14 (GMT) |
commit | f8f7c0dfaaf33ae0d69fd077a68bcb3239c4b9ec (patch) | |
tree | b0d3b44c708f17a061efdd3019880624a60e3729 /test | |
parent | 073252b22a214c627b2ff9ca9b8d5c6bb25508f0 (diff) | |
download | hdf5-f8f7c0dfaaf33ae0d69fd077a68bcb3239c4b9ec.zip hdf5-f8f7c0dfaaf33ae0d69fd077a68bcb3239c4b9ec.tar.gz hdf5-f8f7c0dfaaf33ae0d69fd077a68bcb3239c4b9ec.tar.bz2 |
[svn-r25941] Fix uninitialized memory error with v2 b-tree shadow pointers
Fix swmr_writer and swmr_remove_writer to handle user-supplied seed values
greater than 2^31-1
Diffstat (limited to 'test')
-rw-r--r-- | test/swmr_remove_writer.c | 5 | ||||
-rw-r--r-- | test/swmr_writer.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/test/swmr_remove_writer.c b/test/swmr_remove_writer.c index c05cf6f..0116467 100644 --- a/test/swmr_remove_writer.c +++ b/test/swmr_remove_writer.c @@ -274,10 +274,7 @@ int main(int argc, const char *argv[]) case 'r':
use_seed = 1;
temp = atoi(argv[u + 1]);
- if(temp < 0)
- usage();
- else
- random_seed = (unsigned)temp;
+ random_seed = (unsigned)temp;
u += 2;
break;
diff --git a/test/swmr_writer.c b/test/swmr_writer.c index 445932d..362e197 100644 --- a/test/swmr_writer.c +++ b/test/swmr_writer.c @@ -322,10 +322,7 @@ int main(int argc, const char *argv[]) case 'r': use_seed = 1; temp = atoi(argv[u + 1]); - if(temp < 0) - usage(); - else - random_seed = (unsigned)temp; + random_seed = (unsigned)temp; u += 2; break; |