| Ticket UUID: | 2570123b6384460203e0456861e04454296acc78 | ||
| Title: | system encoding is not protected from freeing during encode/decode operations | ||
| Type: | Bug | Created on: | 2025-08-13 17:11:30 |
| Submitter: | apnadkarni | Assigned to: | nobody |
| Subsystem: | - New Builtin Commands | Severity: | Important |
| Priority: | 5 Medium | Last modified: | 2025-08-14 11:40:50 |
| Status: | Closed | Closed by: | apnadkarni |
| Resolution: | Duplicate | Closed on: | 2025-08-14 11:40:50 |
| Version: | 8.6 | ||
| Description: | ||||
|
Inspecting code, I have doubts about potential crashes from accessing freed encodings in multithreaded environments. Several functions have code similar to below:
The issue I am wondering about is that the reference count on systemEncoding is not incremented in such cases. What happens if some other thread calls Need to build a test case to verify above race condition but perhaps someone could corroborate or refute my analysis. And save me the trouble of creating the test case :-) | ||||
| User Comments: | ||||
sebres added on 2025-08-13 17:59:20:
Is not that a duplicate of [f2ff05fc84]? apnadkarni added on 2025-08-14 11:40:50:
Oh, yes it is! Short term memory loss (to go with long term memory loss). Closing as duplicate. | ||||
