mirror of https://github.com/PCSX2/pcsx2.git
onepad: be sure pad variable is 0 or 1
CID 146918 (#1 of 1): Use of untrusted scalar value (TAINTED_SCALAR) tainted_data: Passing tainted variable pad to a tainted sink
This commit is contained in:
parent
113c0aa411
commit
8928c3e7f1
|
@ -199,7 +199,7 @@ void LoadConfig()
|
|||
u32 keysym;
|
||||
u32 index;
|
||||
while( fscanf(f, "PAD %d:KEYSYM 0x%x = %d\n", &pad, &keysym, &index) != EOF ) {
|
||||
set_keyboad_key(pad, keysym, index);
|
||||
set_keyboad_key(pad & 1, keysym, index);
|
||||
if(pad == 0) have_user_setting = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue