This repository was archived by the owner on Feb 8, 2021. It is now read-only.
Commit ad48a32
committed
Avoid returning random number while parsing route failed
In current code, while parsing route information from JSON failed.
The found will be 0, and the hyper_parse_routes will not be invoked.
In this case, the r_num will not be assigned and use a random value.
This will crash the guest kernel without the commit:
d43bd26b8562fe6c96ee762d96ceb65b9b6c067f
Change-Id: I2dd321b078d33bd1c3b2864ba81110eef17c8cb4
Signed-off-by: Wei Chen <Wei.Chen@arm.com>1 parent 782a124 commit ad48a32
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1026 | 1032 | | |
1027 | 1033 | | |
1028 | 1034 | | |
| |||
0 commit comments