diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bootconfig.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bootconfig.c b/lib/bootconfig.c index 84d74ef234a5..d64ebfca9796 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -1121,6 +1121,13 @@ static int __init xbc_parse_tree(void) } } while (!ret); + if (!ret) { + while (p < xbc_data + xbc_data_size - 1 && *p == '\0') + p++; + if (p < xbc_data + xbc_data_size - 1) + ret = xbc_parse_error("Unexpected data after null character", p); + } + return ret; } |
