aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_usb_linux.h
diff options
context:
space:
mode:
authorCookedMelon <cc2414635846@163.com>2024-04-04 01:42:45 +0800
committerDmitry Vyukov <dvyukov@google.com>2024-04-05 05:23:42 +0000
commit47d9c0edfbe59bff64dc279a63d2dce54552cf12 (patch)
treeb05382f303f877e6c7beded2f5c517559085faac /executor/common_usb_linux.h
parent0ee3535ea8ff21d50e44372bb1cfd147e299ab5b (diff)
executor: fix uninitialized variable when generating kvm code
The "avl" fields (variable type is u8) of the kvm_segment structure variables such as seg_cs16 and seg_ldt are not initialized to zero. During creation, there is a chance that they are set to values other than 0 or 1, which can cause the "avl" fields to overwrite other fields when executing the fill_segment_descriptor function, leading to erroneous results.
Diffstat (limited to 'executor/common_usb_linux.h')
0 files changed, 0 insertions, 0 deletions