Overview
| Artifact ID: | 335a32f0271b3d6a91226fb877d7b9b311cdfb9f |
|---|---|
| Ticket: | 1901113fffffffffffffffffffffffffffffffff
Crash in tcl::Bgerror |
| User & Date: | tallniel on 2008-02-25 09:51:24 |
Changes
- assignee changed to: "dgp"
- icomment:
File Added - 267826: bgerror.patch Logged In: YES user_id=102050 Originator: YES Looks like TclDefaultBgErrorHandlerObjCmd (in generic/tclEvent.c) doesn't check for error conditions when retrieving options from the dictionary. Notably, if the dictionary passed in doesn't contain either of the expected keys {-level, -code} then the code will crash as it attempts to access the NULL pointer returned from Tcl_DictObjGet. (The code is safe for -errorcode and -errorinfo). I attach a patch to fix this bug, by assuming -level 0 and -code TCL_ERROR (which seem like reasonable defaults). Obviously, this command is unlikely to be called directly like this anyway, but it's a simple fix to avoid a crash condition. Also assigning to dgp as ChangeLog has your name against last entry for this command. Cheers, Neil File Added: bgerror.patch - login: "tallniel"
- mimetype: "text/plain"
- username: "tallniel"