mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-28 18:57:37 +00:00
dell: Fix a possibly-impossible-to-hit buffer overrun
Found using Coverity.
This commit is contained in:
parent
dd7713d27d
commit
e686719e38
@ -503,7 +503,7 @@ fu_provider_dell_device_added_cb (GUsbContext *ctx,
|
||||
parse_flags = fu_provider_dell_get_version_format ();
|
||||
|
||||
for (guint i = 0; i < dock_info->component_count; i++) {
|
||||
if (i > MAX_COMPONENTS) {
|
||||
if (i >= MAX_COMPONENTS) {
|
||||
g_debug ("Dell: Too many components. Invalid: #%u", i);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user