From 5d306ed9f310f445777d98b1194dafeecc93679b Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Thu, 27 Oct 2022 13:23:24 +0200 Subject: [PATCH] Don't print vulkan driver info, if it contains new lines #316 --- src/detection/vulkan.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/detection/vulkan.c b/src/detection/vulkan.c index 9c348b74b..685de47b8 100644 --- a/src/detection/vulkan.c +++ b/src/detection/vulkan.c @@ -24,7 +24,11 @@ static void applyDriverName(VkPhysicalDeviceDriverProperties* properties, FFstrb ffStrbufAppendS(result, properties->driverName); - if(!ffStrSet(properties->driverInfo)) + /* + * Some drivers (android for example) expose a multiline string as driver info. + * It contains too much info anyways, so we just don't append it. + */ + if(!ffStrSet(properties->driverInfo) || strchr(properties->driverInfo, '\n') != NULL) return; ffStrbufAppendS(result, " [");