From c53702cee1d6f9f1b72f0cae0b412e21bcda8724 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 10 Oct 2013 15:48:55 +0100 Subject: libxl: fix vif rate parsing strtok can return NULL here. We don't need to use strtok anyway, so just use a simple strchr method. Coverity-ID: 1055642 This is CVE-2013-4369 / XSA-68 Signed-off-by: Matthew Daley Fix type. Add test case Signed-off-by: Ian Campbell --- tools/libxl/check-xl-vif-parse | 4 ++++ tools/libxl/libxlu_vif.c | 19 +++++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/tools/libxl/check-xl-vif-parse b/tools/libxl/check-xl-vif-parse index 0473182a4d..02c6dbaeb6 100755 --- a/tools/libxl/check-xl-vif-parse +++ b/tools/libxl/check-xl-vif-parse @@ -206,4 +206,8 @@ expected