commit | a14581642c9e7dcee15d05bde9fd0a6a47350dcc | [log] [tgz] |
---|---|---|
author | Erik de Castro Lopo <erikd@mega-nerd.com> | Wed Aug 26 17:13:39 2015 +1000 |
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | Wed Aug 26 17:21:36 2015 +1000 |
tree | 9eb612b4fb6c156335cbf4155834abf902719cd2 | |
parent | fb273e469e358994034e79e882192ac5eb7c9d48 [diff] |
libFLAC/format.c: Fix undefined behaviour In the case where seek_table->num_points is zero, seek_table->points will be NULL and passing that to qsort() invokes undefined behaviour. Since seek_table->num_points is zero, the only sensible thing to do is to short circuit return 0.