https://bugs.freedesktop.org/show_bug.cgi?id=103103
--- Comment #7 from [email protected] ---
The problem is composition of overflow (due to huge value returned by
pa_stream_writable_size()) and next underflow. The previous comment treated
underflow. The overflow can be addressed by change:
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index ee95757..87c5f9d 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -842,6 +842,9 @@ void pa_command_request(pa_pdispatch *pd, uint32_t command,
uint32_t tag, pa_tag
#ifdef STREAM_DEBUG
pa_log_debug("got request for %lli, now at %lli", (long long) bytes, (long
long) s->requested_bytes);
#endif
+ if (s->buffer_attr.tlength != -1)
+ if (s->requested_bytes > s->buffer_attr.tlength)
+ s->requested_bytes = s->buffer_attr.tlength;
if (s->requested_bytes > 0 && s->write_callback)
s->write_callback(s, (size_t) s->requested_bytes, s->write_userdata);
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug._______________________________________________
pulseaudio-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs