Possible bug in pa_sink_input_request_rewind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

In pa_sink_input_request_rewind, nbytes == 0 means "rewind as far as
possible". However, I think I have found (by code inspection) a case
where it is not honored. The case is where
i->thread_info.rewrite_nbytes is already non-zero due to a prior
rewind request.

In this case, nbytes will be set to i->thread_info.rewrite_nbytes (a
non-zero value) and thus the later test for nbytes <= 0 will fail.
BTW, the "<=" is misleading, as nbytes is unsigned.

No patch yet, as I should not create patches at night.

-- 
Alexander E. Patrakov


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux