diff --git a/Resources/Plugins/System Profiler/TPI_SP_SysInfo.m b/Resources/Plugins/System Profiler/TPI_SP_SysInfo.m index 9dbe2d422e..cc4e32545c 100755 --- a/Resources/Plugins/System Profiler/TPI_SP_SysInfo.m +++ b/Resources/Plugins/System Profiler/TPI_SP_SysInfo.m @@ -508,8 +508,9 @@ + (NSString *)graphicsCardInfo const void *model = CFDictionaryGetValue(serviceDictionary, @"model"); if (PointerIsNotEmpty(model)) { - if (CFGetTypeID(model) == CFDataGetTypeID()) { - NSString *s = [NSString stringWithData:(__bridge NSData *)model encoding:NSASCIIStringEncoding]; + if (CFGetTypeID(model) == CFDataGetTypeID() && CFDataGetLength(model) > 1) { + NSString *s = [NSString stringWithBytes:[(__bridge NSData *)model bytes] length:(CFDataGetLength(model)-1) + encoding:NSASCIIStringEncoding]; [gpuList addObject:s]; }