mirror of
https://github.com/dgibson/dtc.git
synced 2026-05-12 11:43:04 -04:00
Compare commits
2 commits
8d15a63e84
...
68b960e299
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68b960e299 | ||
|
|
adba02caf5 |
3 changed files with 2 additions and 3 deletions
2
checks.c
2
checks.c
|
|
@ -324,7 +324,7 @@ ERROR(node_name_chars, check_node_name_chars, NODECHARS);
|
||||||
static void check_node_name_chars_strict(struct check *c, struct dt_info *dti,
|
static void check_node_name_chars_strict(struct check *c, struct dt_info *dti,
|
||||||
struct node *node)
|
struct node *node)
|
||||||
{
|
{
|
||||||
int n = strspn(node->name, c->data);
|
size_t n = strspn(node->name, c->data);
|
||||||
|
|
||||||
if (n < node->basenamelen)
|
if (n < node->basenamelen)
|
||||||
FAIL(c, dti, node, "Character '%c' not recommended in node name",
|
FAIL(c, dti, node, "Character '%c' not recommended in node name",
|
||||||
|
|
|
||||||
2
dtc.h
2
dtc.h
|
|
@ -227,7 +227,7 @@ struct node {
|
||||||
struct node *next_sibling;
|
struct node *next_sibling;
|
||||||
|
|
||||||
char *fullpath;
|
char *fullpath;
|
||||||
int basenamelen;
|
size_t basenamelen;
|
||||||
|
|
||||||
cell_t phandle;
|
cell_t phandle;
|
||||||
int addr_cells, size_cells;
|
int addr_cells, size_cells;
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,6 @@ static bool valid_header(char *p, size_t len)
|
||||||
{
|
{
|
||||||
if (len < sizeof(struct fdt_header) ||
|
if (len < sizeof(struct fdt_header) ||
|
||||||
fdt_magic(p) != FDT_MAGIC ||
|
fdt_magic(p) != FDT_MAGIC ||
|
||||||
fdt_version(p) > MAX_VERSION ||
|
|
||||||
fdt_last_comp_version(p) > MAX_VERSION ||
|
fdt_last_comp_version(p) > MAX_VERSION ||
|
||||||
fdt_totalsize(p) >= len ||
|
fdt_totalsize(p) >= len ||
|
||||||
fdt_off_dt_struct(p) >= len ||
|
fdt_off_dt_struct(p) >= len ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue