libuuu: do not crash when using FB: write -format without `@off` or `@size`
commit3a5beb69a3b0e8dcb78bd6a8fabd77f2ebe6018f
authorMatthias Schiffer <matthias.schiffer@tq-group.com>
Tue, 21 Nov 2023 13:49:41 +0000 (21 14:49 +0100)
committernxpfrankli <frank.li@nxp.com>
Thu, 23 Nov 2023 07:32:12 +0000 (23 02:32 -0500)
tree85a4414784f96548b0ea3ded9ddebf3f424cefeb
parentf9080cca90c76f6631581f8c53b638b2ca9d0360
libuuu: do not crash when using FB: write -format without `@off` or `@size`

Check the return code of ucmd.find(), so we don't attempt to replace
with an out-of-bounds index when the command string does not contain the
`@off` and `@size` patterns.
libuuu/fastboot.cpp