| commit | d9aa81ed903efac208083a0933e2ff4643f9fb54 | [log] [tgz] |
|---|---|---|
| author | Nico Huber <nico.h@gmx.de> | Mon Jan 26 18:30:25 2026 +0100 |
| committer | Nico Huber <nico.h@gmx.de> | Mon Feb 09 20:38:18 2026 +0000 |
| tree | 5db6ca8f476420ba6f4bd6791265ef922cc34fa2 | |
| parent | 72d0adaa8c87472994763f1920494d54dff8528b [diff] |
sfdp: Call selfcheck_chip() if parsing looked successful Change-Id: Ic296e0e05425b2bafc11e18f05705f83c075f23b Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/394
diff --git a/sfdp.c b/sfdp.c index df939ae..bb5034b 100644 --- a/sfdp.c +++ b/sfdp.c
@@ -465,6 +465,11 @@ free(tbuf); } + if (ret == 1 && selfcheck_chip(flash->chip, -1)) { + msg_cerr("SFDP parsing resulted in invalid chip structure.\n"); + ret = 0; + } + cleanup_hdrs: free(hdrs); free(hbuf);