Opened 10 years ago
Closed 9 years ago
#8283 closed Bugs (fixed)
list_new/list_push_back missing object_copy
Reported by: | Owned by: | Vladimir Prus | |
---|---|---|---|
Milestone: | To Be Determined | Component: | build |
Version: | Boost Release Branch | Severity: | Problem |
Keywords: | Cc: |
Description
list_new() and list_push_back() are missing object_copy when insert a object. This causes memory access violation with BJAM_NO_MEM_CACHE.
Attachments (2)
Change History (9)
by , 10 years ago
Attachment: | fix-lame-object-copying.patch added |
---|
comment:1 by , 10 years ago
by , 10 years ago
Attachment: | fix-missing-object_copy.patch added |
---|
comment:5 by , 10 years ago
I've committed the path.c fix. I'm not sure what the reason for the pathnt.c change is, though. AFAICT, path should be either overwritten on line 232 or copied on line 249.
comment:7 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
These functions are not supposed to make copies. They take ownership of their arguments. Your patch will result in a memory leak with BJAM_NO_MEM_CACHE. The correct fix is to track down the caller that isn't making a copy.