Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2012-10-14
03:29 • Closed ticket [3576509fff]: tcl::Bgerror crashes with invalid arguments plus... artifact: 9333c34fbb user: nijtmans
2012-10-12
02:27 • New ticket [3576509fff]. artifact: 07dca8b020 user: apnadkarni

tcl::Bgerror crashes with invalid arguments

Closed / Fixed3576509fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2012-10-12 02:27:50
8.6b3 (or thereabouts), Windows XP but probably not platform specific

Within wish, tcl::Bgerror "This is an error" foo

will cause a crash. I ran into this because I inadvertently passed in the name of variable containing the options dict instead of the dict value.

Cause of crash is that the return value from the call to Tcl_DictObjGet in function TclDefaultBgErrorHandlerObjCmd is not checked and the code lands up accessing a garbage valuePtr.
nijtmansplain2012-10-14 03:29:36
Fixed in core-8-5-branch and in trunk
Log in (anonymous is fine) to add a comment.