[ruby-cvs:72684] mame:r65584 (trunk): Revert "thread.c (rb_wait_for_single_fd): no point initializing pollfd.revents"

mame at ruby-lang.org mame at ruby-lang.org
Wed Nov 7 07:55:57 JST 2018


mame	2018-11-07 07:55:57 +0900 (Wed, 07 Nov 2018)

  New Revision: 65584

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65584

  Log:
    Revert "thread.c (rb_wait_for_single_fd): no point initializing pollfd.revents"
    
    It may cause an access to uninitialized variables.
    The call to ppoll will set the `revents` field, but ppoll is not always
    called because it is in the guard `!RUBY_VM_INTERRUPTED(th->ec)`.
    This issue was found by Coverity Scan.

  Modified files:
    trunk/thread.c


More information about the ruby-cvs mailing list