|
|
@ -47,6 +47,8 @@ static struct table_header *unpack_table(char *blob, size_t bsize) |
|
|
|
* it every time we use td_id as an index |
|
|
|
* it every time we use td_id as an index |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
th.td_id = be16_to_cpu(*(u16 *) (blob)) - 1; |
|
|
|
th.td_id = be16_to_cpu(*(u16 *) (blob)) - 1; |
|
|
|
|
|
|
|
if (th.td_id > YYTD_ID_MAX) |
|
|
|
|
|
|
|
goto out; |
|
|
|
th.td_flags = be16_to_cpu(*(u16 *) (blob + 2)); |
|
|
|
th.td_flags = be16_to_cpu(*(u16 *) (blob + 2)); |
|
|
|
th.td_lolen = be32_to_cpu(*(u32 *) (blob + 8)); |
|
|
|
th.td_lolen = be32_to_cpu(*(u32 *) (blob + 8)); |
|
|
|
blob += sizeof(struct table_header); |
|
|
|
blob += sizeof(struct table_header); |
|
|
|