Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
1d421608
Commit
1d421608
authored
Feb 02, 2015
by
Uwe Schulzweida
Browse files
cdfCopyRecord: incorrect checksum for freed object [Bug #5461]
parent
d3675972
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
1d421608
2015-0
1-2
2 Uwe Schulzweida
2015-0
2-1
2 Uwe Schulzweida
* Version 1.6.8 released
2015-02-02 Uwe Schulzweida
* cdfCopyRecord: incorrect checksum for freed object [Bug #5461]
2015-01-16 Uwe Schulzweida
* cdiDecodeTimevalue: round seconds for TUNIT_SECOND (bug fix)
...
...
src/stream_cdf.c
View file @
1d421608
...
...
@@ -620,7 +620,8 @@ void cdfCopyRecord(stream_t *streamptr2, stream_t *streamptr1)
int
memtype
=
MEMTYPE_DOUBLE
;
int
vlistID1
=
streamptr1
->
vlistID
;
int
tsID1
=
streamptr1
->
curTsID
;
int
recID1
=
streamptr1
->
tsteps
[
tsID1
].
curRecID
;
int
vrecID
=
streamptr1
->
tsteps
[
tsID1
].
curRecID
;
int
recID1
=
streamptr1
->
tsteps
[
tsID1
].
recIDs
[
vrecID
];
int
ivarID
=
streamptr1
->
tsteps
[
tsID1
].
records
[
recID1
].
varID
;
int
gridID
=
vlistInqVarGrid
(
vlistID1
,
ivarID
);
int
datasize
=
gridInqSize
(
gridID
);
...
...
@@ -4999,7 +5000,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
for
(
int
i
=
0
;
i
<
nvdims
;
++
i
)
ncvars
[
ncvarid
].
chunks
[
i
]
=
(
int
)
chunks
[
i
];
if
(
CDI_Debug
)
{
fprintf
(
stderr
,
"
\n
chunking %d %d %d
\n
chunks "
,
storage_in
,
NC_CONTIGUOUS
,
NC_CHUNKED
);
fprintf
(
stderr
,
"
%s:
chunking %d %d %d
chunks "
,
name
,
storage_in
,
NC_CONTIGUOUS
,
NC_CHUNKED
);
for
(
int
i
=
0
;
i
<
nvdims
;
++
i
)
fprintf
(
stderr
,
"%ld "
,
chunks
[
i
]);
fprintf
(
stderr
,
"
\n
"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment