[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/2] tools/xl: fix parsing of llc_colors ranges


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Bala Andegue François Lionnel <balaandeguefrancoislionnel@xxxxxxxxx>
  • Date: Thu, 3 Dec 2026 11:54:22 +0100
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=20260707 header.d=gmail.com header.i="@gmail.com" header.h="Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From"
  • Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Thu, 03 Dec 2026 10:56:13 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This series fixes two bugs in the parsing of the llc_colors option in
xl. The first was reported by gcc -fanalyzer, and the second was found
while reading the same code and reproduced with "xl -N create".

Patch 1 replaces an unchecked realloc() with xrealloc().

Patch 2 fixes an integer overflow on ranges ending at UINT32_MAX, which
makes xl write past the end of the array or through a NULL pointer.

Bala Andegue François Lionnel (2):
  tools/xl: use xrealloc() when parsing llc_colors
  tools/xl: fix overflow when parsing llc_colors ranges

 tools/xl/xl_parse.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)


base-commit: 091d3c200281ea44846ccdf1e5d39985321c643e
-- 
2.39.2




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.