Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 73d6d0f9a57da46cd18d32cfa8c97e521cee60fc
Ticket: 2949740fffffffffffffffffffffffffffffffff
Segfault when open fails with "b" (binary) flag specified
User & Date: a_kovalenko on 2010-02-11 14:56:41
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    open "|something-nonexistent" rb
    => Segmentation fault
    
    The cause is that Tcl_SetChannelOption is called to set up binary translation, _without_ checking for success, and when [open] fails, NULL channel is passed into this function.
    
    A trivial patch fixing this (one of possible variants, not necessary of the best code style) is attached.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "a_kovalenko"
  10. subsystem changed to: "24. Channel Commands"
  11. title changed to:
    Segfault when open fails with "b" (binary) flag specified
    
  12. type changed to: "Bug"