Hello, a short follow-up: the proposed one-line change is attached as a file, because the inline copy in my initial report lost its leading whitespace when the mail was converted to plain text (all indentation in the diff is gone). Only one line differs: - info = malloc(sizeof(struct jtagspi_flash_bank)); + info = calloc(1, sizeof(struct jtagspi_flash_bank)); If you prefer to work from the inline text in the report, applying it with `patch -p1 -l` (ignore whitespace) or editing that single line by hand is equally fine - nothing else in src/flash/nor/jtagspi.c changes. The equivalent upstream commit is fe5ed48f40 (merged 2023-09-23). A hardening change that makes a dropped erase command visible is on Gerrit as https://review.openocd.org/c/openocd/+/10232 (the mingw64 CI build for it passed). Kind regards, qiansr
debian-jtagspi-calloc.patch
Description: debian-jtagspi-calloc.patch

