Parent: ccec5e8ef171e87ded5a6caf8caee7f1e2731552
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-06-03 22:05:10
Tree: 6de81b25b7d3c6c6728450ab6a0916da9b7d28b4
rfkill: Avoid using a signed int for an unsigned variable Error: INTEGER_OVERFLOW (CWE-190): [#def37] [important] src/rfkill.c:105:3: underflow: The cast of "event.idx" to a signed type could result in a negative number. 103| break; 104| 105|-> id = get_adapter_id_for_rfkill(event.idx); 106| 107| if (index == id) { Error: INTEGER_OVERFLOW (CWE-190): [#def38] [important] src/rfkill.c:157:2: underflow: The cast of "event.idx" to a signed type could result in a negative number. 155| return TRUE; 156| 157|-> id = get_adapter_id_for_rfkill(event.idx); 158| if (id < 0) 159| return TRUE;
Diffstat
| M | src/rfkill.c | | | 2 | +- |
1 files changed, 1 insertions(+), 1 deletions(-)