Code could corrupt stack when writing to flash that requires write of size greater then 1.
memset function used for filling buffer so writes have correct number of bytes incorrectly cast buffer to (uint32_t *) and then added number of bytes resulting in possible write to unintended stack memory.
Code could corrupt stack when writing to flash that requires write of size greater then 1.
memset function used for filling buffer so writes have correct number of bytes incorrectly cast buffer to (uint32_t *) and then added number of bytes resulting in possible write to unintended stack memory.