diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-11-09 14:33:13 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-11-11 16:37:13 +0100 |
commit | 4ba8f7b1ef1e4c0607185a41c06b51928c625d8b (patch) | |
tree | fa0d31cfe601301c0b900850131f59c808f832ba /package/system/fwtool/src/fwimage.h | |
parent | e97113d5e18c31050bc06f7c6b7a5c663b5f31a4 (diff) | |
download | upstream-4ba8f7b1ef1e4c0607185a41c06b51928c625d8b.tar.gz upstream-4ba8f7b1ef1e4c0607185a41c06b51928c625d8b.tar.bz2 upstream-4ba8f7b1ef1e4c0607185a41c06b51928c625d8b.zip |
fwtool: update to latest Git head
Includes following changes:
9d9d4c284786 fix possible garbage in unitialized char* struct members
dbc1b1b71b24 fix possible copy of null buffer and validation of unitialized header
76d53deef8bb crc32: add missing stdint.h dependency
e5666ed3b47c add cram based unit tests
abe0cf7de053 add initial GitLab CI support
e43042507b4f iron out extra compiler warnings
5df0cd6e1523 convert into CMake project
a7dc0526f819 refactor into separate Git project
adds missing PKG_LICENSE field and converts the package build to utilize
CMake.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package/system/fwtool/src/fwimage.h')
-rw-r--r-- | package/system/fwtool/src/fwimage.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/package/system/fwtool/src/fwimage.h b/package/system/fwtool/src/fwimage.h deleted file mode 100644 index 52dcfb1bac..0000000000 --- a/package/system/fwtool/src/fwimage.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2016 Felix Fietkau <nbd@nbd.name> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ -#ifndef __FWIMAGE_H -#define __FWIMAGE_H - -#include <stdint.h> - -#define FWIMAGE_MAGIC 0x46577830 /* FWx0 */ - -struct fwimage_header { - uint32_t version; - uint32_t flags; - char data[]; -}; - -struct fwimage_trailer { - uint32_t magic; - uint32_t crc32; - uint8_t type; - uint8_t __pad[3]; - uint32_t size; -}; - -enum fwimage_type { - FWIMAGE_SIGNATURE, - FWIMAGE_INFO, -}; - -#endif |