wmadec: Properly handle empty outputs.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 1 Nov 2016 05:10:00 +0000 (06:10 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 8 Dec 2016 18:42:18 +0000 (19:42 +0100)
commit8eaa28075189eea5db470422e8b4110df723cce3
tree3a7420a2dac0fa99d996a39e882728b541757b83
parentcaaccb675a80739e7832ef832dcef0d93e455366
wmadec: Properly handle empty outputs.

If out_size is zero we try to shrink the buffer to size zero. POSIX
says that the behavior is implementation-defined in this case, and
para_realloc() aborts due to an assert() statement that checks for
size zero. This patch makes sure the wma decoder never calls realloc()
with a zero size argument.
wmadec_filter.c