sox_ng/test/BUG-368/run

30 lines
607 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
# Segmentation fault (core dumped)
# Debian
# sox FAIL formats: can't open input file `poc_file': Implausible dictionary size in HCOM header
# 42b355
# Segmentation fault (core dumped)
# sox_ng-14.5.0
sox_ng FAIL formats: can't open input file `poc_file': Implausible dictionary size in HCOM header
rm -f core core.*
${sox:-sox} --single-threaded poc_file -t aiff /dev/null
status=$?
rm -f core core.*
case $status in
0) status=255;;
2) status=0;;
esac
exit $status