← Back to team overview

ubuntu-phonedations-bugs team mailing list archive

[Bug 1408228] Re: GRilIO may stop reading under boundary conditions

 

** Changed in: ofono (Ubuntu)
       Status: Incomplete => Invalid

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

Title:
  GRilIO may stop reading under boundary conditions

Status in ofono package in Ubuntu:
  Invalid

Bug description:
  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.

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