<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [module-rtp-recv] non null terminated string / non portable sscanf"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92568">92568</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[module-rtp-recv] non null terminated string / non portable sscanf
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>melnikovsky@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=119030" name="attach_119030" title="patch against pa5.0">attachment 119030</a> <a href="attachment.cgi?id=119030&action=edit" title="patch against pa5.0">[details]</a></span>
patch against pa5.0
In rtp.c:
if (sscanf(t+9, "%i %64c", &_payload, c) == 2)
the string c seems to be non-null terminated. It is later used as following:
c[strcspn(c, "\n")] = 0;
The same piece of code is responsible for the inability of pulseaudio on
OpenWRT to handle RTP stream at the rate 48000 from another machine:
[pulseaudio] sdp.c: Failed to parse SDP data: missing data.
It turns out that uClibc does not agree with glibc about "%64c", see
<a href="http://git.uclibc.org/uClibc/tree/docs/Glibc_vs_uClibc_Differences.txt">http://git.uclibc.org/uClibc/tree/docs/Glibc_vs_uClibc_Differences.txt</a>
Attached is a patch that should take care of both issues.</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>