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
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "a_kovalenko"
- subsystem changed to: "24. Channel Commands"
- title changed to:
Segfault when open fails with "b" (binary) flag specified
- type changed to: "Bug"