Skip to content
RED SAG Skills
mediumStudy question · answer published in Embedded C interview questions, so no pointsembedded-cmemory-layout

A variable-length array

Why is this risky in firmware?

void log_frame(size_t len) {
    uint8_t tmp[len];
    /* ... */
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions