sox_ng/test/BUG-369/run

26 lines
495 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#! /bin/sh
# https://sourceforge.net/p/sox/bugs/369
# We found a FPE in SoX 14.4.3gitsrc/voc.c:334:18 in read_samples)
# 14.4.2
# sox WARN voc: VOC input: short file
# Exits 0 and creates a 3132-sample file
# Debian
# Exits 0 and creates a file of 4 samples
# 42b355
# Floating point exception (core dumped)
# sox_ng-14.5.0
# Exits 0 and creates a file of 4 samples
rm -f core core.*
${sox:-sox} --single-threaded poc_file -t aiff /dev/null
status=$?
rm -f out.wav core
exit $status