Project

General

Profile

Actions

Bug #6081

closed

[PATCH] io.c (do_io_advise): raise exception without segfaulting

Added by normalperson (Eric Wong) about 12 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-02-25 trunk 34796) [x86_64-linux]
Backport:
[ruby-core:42880]

Description

IO objects (e.g. pipes) may have Qnil for fptr->pathv. Calling
RSTRING_PTR on Qnil is unsafe and causes a segmentation fault.

This issue also affects 1.9.3 and will need to be backported.


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0