<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - sndfile-util.c crashes on 24 bit files"
href="https://bugs.freedesktop.org/show_bug.cgi?id=70096">70096</a>
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>sndfile-util.c crashes on 24 bit files
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tanuk@iki.fi
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>core
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr></table>
<p>
<div>
<pre>Reported in IRC:
<kiraank> Hi, I am using PA 2.1 and getting this error when I try to play some
wav file using paplay : "Code should not be reached at
pulsecore/sndfile-util.c:391, function pa_sndfile_readf_function(). Aborting.
I had a look at pa_sndfile_readf_function(). It handles a limited set of sample
formats. I then checked what kind of sample specs paplay can give that
function. It looks like the sample spec is coming from
pa_sndfile_read_sample_spec(), and that function can return format
PA_SAMPLE_S24NE, which is not handled by pa_sndfile_readf_function().
We couldn't figure out with kiraank what the sample format of the test file was
("file test.wav" didn't show the bit depth for some reason). I then tried to
create a test file with this command:
parecord --device=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
--format=s24le > test.wav
but that crashed too, in a similar way but not exactly the same:
Code should not be reached at pulsecore/sndfile-util.c:413, function
pa_sndfile_writef_function(). Aborting.
Aborted</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>