#! /bin/sh

# CVE-2021-3643

# Discovered by redhat while investigating CVE-2021-23210
# The test file is the same as for that CVE
# and the test command taken from Jan Stary's comment to
# https://sourceforge.net/p/sox/bugs/351/

# 14.4.2:
# sox WARN voc: VOC input: short file
# and exits 0

# Debian:
# says nothing and exits 0

# 42b355:
# Floating point exception (core dumped)

rm -f core profile

${sox:-sox} bug3 -n noiseprof profile
status=$?

rm -f core profile

exit $status
