Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2013-09-24
12:07 • Closed ticket [3613569fff]: If a temporary file cannot be opened Tcl_LoadFile ca... artifact: 0bf49458e4 user: dkf
2013-05-20
22:10 • Pending ticket [3613569fff]. artifact: 1aa381c9b7 user: dgp
22:10 • Ticket [3613569fff]: 4 changes artifact: cf85744ce0 user: dgp
2013-05-19
01:45 • Ticket [3613569fff]: 4 changes artifact: aab0cf590b user: rkeene
01:45 • Add attachment tcl-8.6.0-bug3613569-1segfaultonnotmp.diff to ticket [36... artifact: 98c8d51fd1 user: rkeene
01:43 • Ticket [3613569fff] If a temporary file cannot be opened Tcl_LoadFile can crash<... artifact: 325dbbc009 user: rkeene
2013-05-18
18:43 • New ticket [3613569fff]. artifact: c805b4aede user: rkeene

If a temporary file cannot be opened Tcl_LoadFile can crash

Closed / Fixed3613569fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 13 years ago
Descriptionplain2013-05-18 18:43:10
copyToPtr can be NULL and it should be checked before passing it to Tcl_IncrRefCount()

http://core.tcl.tk/tcl/artifact/26a06b015bfec491bb32903223af5152b3ceeb0d?ln=3230-3231

Prelimnary patch attached, however after applying this patch I then get:
Tcl_FSGetFileSystemForPath called with NULL object
Segmentation fault (core dumped)
rkeene Ticket [3613569fff]: 1 change [History diff]2013-05-19 01:43:47
rkeeneplain2013-05-19 01:45:36
File Added - 463423: tcl-8.6.0-bug3613569-1segfaultonnotmp.diff
dgpplain2013-05-20 22:10:21
Committed to trunk a forward porting of the
logic in the 8.5 branch on how to react when
NULL is returned.  Please comment if the solution
is not satisfactory.

Looks like the bug came in with TIP 357 implementation.
dgp Pending ticket [3613569fff]. [History diff]2013-05-20 22:10:22
dkf Closed ticket [3613569fff]. [History diff]2013-09-24 12:07:56
Log in (anonymous is fine) to add a comment.

Attachments: