mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
FS#10740 - rbutil: Test Cowon D2 OF file for CRC consistency before patching
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23470 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
50edc5819e
commit
bcadf96066
5 changed files with 55 additions and 6 deletions
|
|
@ -81,6 +81,14 @@ void BootloaderInstallTcc::installStage2(void)
|
|||
goto exit;
|
||||
}
|
||||
|
||||
/* A CRC test in order to reject non OF file */
|
||||
if (test_firmware_tcc(of_buf, of_size))
|
||||
{
|
||||
emit logItem(errstr, LOGERROR);
|
||||
emit logItem(tr("Unknown OF file used: %1").arg(m_offile), LOGERROR);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
/* Load bootloader file */
|
||||
boot_buf = file_read(bootfile.toLocal8Bit().data(), &boot_size);
|
||||
if (boot_buf == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue