From: Andre Noll Date: Tue, 1 Nov 2016 05:10:00 +0000 (+0100) Subject: wmadec: Properly handle empty outputs. X-Git-Tag: v0.5.7~11^2~4 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=8eaa28075189eea5db470422e8b4110df723cce3;hp=8eaa28075189eea5db470422e8b4110df723cce3 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. ---