Skip to content

Commit c257c5f

Browse files
committed
mbed_error.c: Fixed another bug of possible stack overflow.
1 parent bd9ec8b commit c257c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/source/mbed_error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static void print_stack_dump_core(uint32_t stack_start, uint32_t stack_size, uin
509509
mbed_error_printf("\n0x%08" PRIX32 ":", st);
510510
for (int i = 0; i < STACK_DUMP_WIDTH; i++) {
511511
uint32_t st_cur = st + i * sizeof(int);
512-
if (st_cur > st_end) {
512+
if (st_cur >= st_end) {
513513
break;
514514
}
515515
uint32_t st_val = *((uint32_t *)st_cur);

0 commit comments

Comments
 (0)