projects
/
platform
/
upstream
/
libsndfile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
paf zero division
[platform/upstream/libsndfile.git]
/
src
/
paf.c
diff --git
a/src/paf.c
b/src/paf.c
index
7c7d527
..
a32a9e2
100644
(file)
--- a/
src/paf.c
+++ b/
src/paf.c
@@
-202,7
+202,7
@@
paf_read_header (SF_PRIVATE *psf)
psf->endian = SF_ENDIAN_BIG ;
} ;
- if (paf_fmt.channels > SF_MAX_CHANNELS)
+ if (paf_fmt.channels > SF_MAX_CHANNELS
|| paf_fmt.channels <= 0
)
return SFE_PAF_BAD_CHANNELS ;
psf->datalength = psf->filelength - psf->dataoffset ;