[Bug 755971] queue2: may overflow unsigned integer arithmetic

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Oct 6 05:41:08 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=755971

Aleksander Wabik <awabik at opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #312709|needs-work                  |none
             status|                            |
 Attachment #312709|0                           |1
        is obsolete|                            |

--- Comment #12 from Aleksander Wabik <awabik at opera.com> ---
Created attachment 312726
  --> https://bugzilla.gnome.org/attachment.cgi?id=312726&action=edit
The fix

I've split the macro into multiple lines, aligning parts of expressions by
indentation. Should be easy to read (as much as the nested ternary operators
can be...)

Making it an inline function would need some refactoring, the macro takes as an
argument the identifier of the structure field, can't pass it to inline.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list