Public bug reported:

In function `received_data` in gril/grilio.c, when we have a ring_buffer
of size 8192, and its in position mark at 8192, out position mark at
8188, ring_buffer_avail_no_wrap will always return zero because it just
has to wrap to write any new data. So, the function received_data in
https://github.com/rilmodem/ofono/blob/master/gril/grilio.c will always
have toread = 0, never go through do-while loop body, and jump over all
the following if-conditions because none of their conditions are
evaluated to true. function received_data will then return true and be
dispatched again by gio almost immediately.

** Affects: ofono (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1408228

Title:
  GRilIO may stop reading under boundary conditions

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1408228/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to