[MPlayer-cvslog] r37594 - branches/1.2/libaf/af_lavcresample.c
rtogni
subversion at mplayerhq.hu
Fri Jan 8 14:55:38 CET 2016
Author: rtogni
Date: Fri Jan 8 14:55:38 2016
New Revision: 37594
Log:
Don't call av_resample() with NULL source.
Fixes a crash with a fuzzed file reported by Gustavo Grieco:
SIGFPE.PC.7ffff3ceed83.STACK.d7d8808dd.CODE.1.ADDR.0x7ffff3ceed83.INSTR.idiv___%r8d.fuzz
Modified:
branches/1.2/libaf/af_lavcresample.c
Modified: branches/1.2/libaf/af_lavcresample.c
==============================================================================
--- branches/1.2/libaf/af_lavcresample.c Fri Jan 8 13:39:01 2016 (r37593)
+++ branches/1.2/libaf/af_lavcresample.c Fri Jan 8 14:55:38 2016 (r37594)
@@ -140,6 +140,8 @@ static af_data_t* play(struct af_instanc
s->in[i]= realloc(s->in[i], s->in_alloc*sizeof(int16_t));
}
}
+ if(s->in[0] == NULL)
+ return NULL;
if(chans==1){
memcpy(&s->in[0][s->index], in, in_len * sizeof(int16_t));
More information about the MPlayer-cvslog
mailing list