resize_channel moves the wrong memory range #2
Loading…
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?
resize_channel()moves the buffers of the upper channels withmemmove(), but it usessource = c->fb[i]. This is the start of the resized channel. The upper channels start atc->fb[i] + c->num_leds.The result is correct only when
c->num_ledsis 0. This is the case when each channel gets its size once, in ascending order (as infw_control_board/src/framebuffer.c). A second resize of a channel moves the wrong range and corrupts the buffers of the upper channels.Possible fix: