mirror of
https://github.com/opnsense/src.git
synced 2026-02-26 03:13:02 -05:00
'status' array passed to get_mouse_status() is usually uninitialized by callers. Fully populating it with values in get_mouse_status() can fail due to read_aux_data(). Additionally, nothing in API constrains 'len' to be >= 3. In practice, every caller passes three, so perhaps that argument should just be removed. Refactoring is a larger change, though. Remove use of potentially uninitialized values by: 1. Only printing 3 debug statuses if the passed array was at least 'len' >= 3; 2. Populating 'status' array up to first three elements, if read_aux_data() failed. No functional change intended. Reported by: Coverity Sponsored by: Dell EMC Isilon |
||
|---|---|---|
| .. | ||
| atkbd.c | ||
| atkbd_atkbdc.c | ||
| atkbdc.c | ||
| atkbdc_ebus.c | ||
| atkbdc_isa.c | ||
| atkbdc_subr.c | ||
| atkbdc_subr.h | ||
| atkbdcreg.h | ||
| atkbdreg.h | ||
| psm.c | ||
| psm.h | ||