mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-26 19:40:24 +00:00
Fix use of uninitialized value in endswap_int64_t_array
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25366 Credit to OSS-Fuzz.
This commit is contained in:
parent
2221cbedd7
commit
288764df09
@ -631,7 +631,7 @@ host_read_d2f (SF_PRIVATE *psf, float *ptr, sf_count_t len)
|
||||
readcount = psf_fread (ubuf.dbuf, sizeof (double), bufferlen, psf) ;
|
||||
|
||||
if (psf->data_endswap == SF_TRUE)
|
||||
endswap_double_array (ubuf.dbuf, bufferlen) ;
|
||||
endswap_double_array (ubuf.dbuf, readcount) ;
|
||||
|
||||
d2f_array (ubuf.dbuf, readcount, ptr + total) ;
|
||||
total += readcount ;
|
||||
|
Loading…
Reference in New Issue
Block a user