projects
/
platform
/
upstream
/
libvorbis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ef0f80
)
vorbis: avoid invalid free
author
Tristan Matthews
<tmatth@videolan.org>
Thu, 9 Nov 2017 07:30:14 +0000
(
02:30
-0500)
committer
Tristan Matthews
<tmatth@videolan.org>
Fri, 10 Nov 2017 17:50:36 +0000
(12:50 -0500)
Regression started at commit "4b67376 Remove multiple subtly different inline..."
lib/info.c
patch
|
blob
|
history
diff --git
a/lib/info.c
b/lib/info.c
index
971f004
..
fe759ed
100644
(file)
--- a/
lib/info.c
+++ b/
lib/info.c
@@
-647,7
+647,7
@@
int vorbis_analysis_headerout(vorbis_dsp_state *v,
memset(op_code,0,sizeof(*op_code));
if(b){
- oggpack_writeclear(&opb);
+
if(vi->channels>0)
oggpack_writeclear(&opb);
if(b->header)_ogg_free(b->header);
if(b->header1)_ogg_free(b->header1);
if(b->header2)_ogg_free(b->header2);