Overview
| Artifact ID: | 6b212c38952fb97d5ef90dcdefb0e5f8859770ede99d14a9cd9c8984be681959 |
|---|---|
| Ticket: | 536ae0326dd09dc372d5e7ab9637384ed9221393
tsv::set or get in thread 2.8.8 crash |
| User & Date: | chw on 2022-12-28 07:04:35 |
Changes
- icomment:
Please try the following fix against a 2.8.8 checkout Index: generic/threadSvCmd.c ================================================================== --- generic/threadSvCmd.c +++ generic/threadSvCmd.c @@ -1056,11 +1056,13 @@ /* * Handle the string rep */ if (objPtr->bytes == NULL) { - dupPtr->bytes = NULL; + if (dupPtr->bytes != Sv_tclEmptyStringRep) { + dupPtr->bytes = NULL; + } } else if (objPtr->bytes != Sv_tclEmptyStringRep) { /* A copy of TclInitStringRep macro */ dupPtr->bytes = (char*)ckalloc((unsigned)objPtr->length + 1); if (objPtr->length > 0) { memcpy((void*)dupPtr->bytes,(void*)objPtr->bytes, - login: "chw"
- mimetype: "text/plain"