mirror of
https://github.com/Comfy-Org/comfy-aimdo.git
synced 2026-11-04 23:37:21 +00:00
[GH-ISSUE #102] incorrect list handling in copy_small_ranges #38
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-aimdo#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dirkmueller on GitHub (Sep 2, 2026).
Original GitHub issue: https://github.com/Comfy-Org/comfy-aimdo/issues/102
In
src/malloc-graph.c, thecopy_small_rangesfunction is defined as:If
mallocfails during any iteration other than the first:**copy = *rangecopy-assigns the entire struct, which includes copying the original list'srange->nextpointer.copy = &(*copy)->nextshifts the assignment target to thenextpointer of the newly allocated range.mallocfails, the loop exits withfalsewithout setting*copy(thenextpointer of the prior allocated node) toNULL.range->next.This behavior leads to double-free corruption.