diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-10-02 16:59:29 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-10-02 16:59:29 (GMT) |
commit | 990b8cb1bcea9b34151001aaaea17af8f006dd1a (patch) | |
tree | 9e56c5367b259b2d5c30614ea50b89630610393a | |
parent | edd0e463c48b187f560a17cb6f5ecdb86fca0f51 (diff) | |
download | hdf5-990b8cb1bcea9b34151001aaaea17af8f006dd1a.zip hdf5-990b8cb1bcea9b34151001aaaea17af8f006dd1a.tar.gz hdf5-990b8cb1bcea9b34151001aaaea17af8f006dd1a.tar.bz2 |
[svn-r4511] Purpose:
Document bug fix.
Description:
When reading or writing to chunked datasets and the data needed datatype
conversion, and the amount of data was more than one conversion buffer,
data in the conversion buffer was getting corrupted.
Solution:
Corrected error in advancing buffer pointer where it was being advanced
by the number of elements instead of the number of bytes.
Platforms tested:
FreeBSD 4.4 (hawkwind)
-rw-r--r-- | src/H5Dseq.c | 12 | ||||
-rw-r--r-- | src/H5Fseq.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/H5Dseq.c b/src/H5Dseq.c index 616528e..57db3e1 100644 --- a/src/H5Dseq.c +++ b/src/H5Dseq.c @@ -285,7 +285,7 @@ printf("%s: partial_size=%lu, hslab_size[%d]=%ld\n",FUNC,(unsigned long)partial_ } /* Increment the buffer offset */ - buf=(unsigned char *)buf+partial_size; + buf=(unsigned char *)buf+(partial_size*elmt_size); /* Decrement the length of the sequence to read */ seq_len-=partial_size; @@ -367,7 +367,7 @@ printf("%s: tmp_seq_len=%lu, hslab_size[%d]=%ld\n",FUNC,(unsigned long)tmp_seq_l } /* Increment the buffer offset */ - buf=(unsigned char *)buf+full_size; + buf=(unsigned char *)buf+(full_size*elmt_size); /* Decrement the sequence length left */ seq_len-=full_size; @@ -426,7 +426,7 @@ printf("%s: partial_size=%lu, coords[%d]=%ld, hslab_size[%d]=%ld\n",FUNC,(unsign } /* Increment the buffer offset */ - buf=(unsigned char *)buf+partial_size; + buf=(unsigned char *)buf+(partial_size*elmt_size); /* Decrement the length of the sequence to read */ seq_len-=partial_size; @@ -738,7 +738,7 @@ printf("%s: partial_size=%lu, hslab_size[%d]=%ld\n",FUNC,(unsigned long)partial_ } /* Increment the buffer offset */ - buf=(const unsigned char *)buf+partial_size; + buf=(const unsigned char *)buf+(partial_size*elmt_size); /* Decrement the length of the sequence to read */ seq_len-=partial_size; @@ -820,7 +820,7 @@ printf("%s: tmp_seq_len=%lu, hslab_size[%d]=%ld\n",FUNC,(unsigned long)tmp_seq_l } /* Increment the buffer offset */ - buf=(const unsigned char *)buf+full_size; + buf=(const unsigned char *)buf+(full_size*elmt_size); /* Decrement the sequence length left */ seq_len-=full_size; @@ -879,7 +879,7 @@ printf("%s: partial_size=%lu, coords[%d]=%ld, hslab_size[%d]=%ld\n",FUNC,(unsign } /* Increment the buffer offset */ - buf=(const unsigned char *)buf+partial_size; + buf=(const unsigned char *)buf+(partial_size*elmt_size); /* Decrement the length of the sequence to read */ seq_len-=partial_size; diff --git a/src/H5Fseq.c b/src/H5Fseq.c index 616528e..57db3e1 100644 --- a/src/H5Fseq.c +++ b/src/H5Fseq.c @@ -285,7 +285,7 @@ printf("%s: partial_size=%lu, hslab_size[%d]=%ld\n",FUNC,(unsigned long)partial_ } /* Increment the buffer offset */ - buf=(unsigned char *)buf+partial_size; + buf=(unsigned char *)buf+(partial_size*elmt_size); /* Decrement the length of the sequence to read */ seq_len-=partial_size; @@ -367,7 +367,7 @@ printf("%s: tmp_seq_len=%lu, hslab_size[%d]=%ld\n",FUNC,(unsigned long)tmp_seq_l } /* Increment the buffer offset */ - buf=(unsigned char *)buf+full_size; + buf=(unsigned char *)buf+(full_size*elmt_size); /* Decrement the sequence length left */ seq_len-=full_size; @@ -426,7 +426,7 @@ printf("%s: partial_size=%lu, coords[%d]=%ld, hslab_size[%d]=%ld\n",FUNC,(unsign } /* Increment the buffer offset */ - buf=(unsigned char *)buf+partial_size; + buf=(unsigned char *)buf+(partial_size*elmt_size); /* Decrement the length of the sequence to read */ seq_len-=partial_size; @@ -738,7 +738,7 @@ printf("%s: partial_size=%lu, hslab_size[%d]=%ld\n",FUNC,(unsigned long)partial_ } /* Increment the buffer offset */ - buf=(const unsigned char *)buf+partial_size; + buf=(const unsigned char *)buf+(partial_size*elmt_size); /* Decrement the length of the sequence to read */ seq_len-=partial_size; @@ -820,7 +820,7 @@ printf("%s: tmp_seq_len=%lu, hslab_size[%d]=%ld\n",FUNC,(unsigned long)tmp_seq_l } /* Increment the buffer offset */ - buf=(const unsigned char *)buf+full_size; + buf=(const unsigned char *)buf+(full_size*elmt_size); /* Decrement the sequence length left */ seq_len-=full_size; @@ -879,7 +879,7 @@ printf("%s: partial_size=%lu, coords[%d]=%ld, hslab_size[%d]=%ld\n",FUNC,(unsign } /* Increment the buffer offset */ - buf=(const unsigned char *)buf+partial_size; + buf=(const unsigned char *)buf+(partial_size*elmt_size); /* Decrement the length of the sequence to read */ seq_len-=partial_size; |