ffGetFileContent now uses FFstrbuf for preventing buffer overflows

This commit is contained in:
Linus Dierheimer
2021-03-21 16:52:17 +01:00
parent 0d3500c66f
commit 101d19a015
24 changed files with 144 additions and 123 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ static void handleGPU(FFinstance* instance, struct pci_access* pacc, struct pci_
if(ffPrintCachedValue(instance, key))
return;
FFstrbuf gpu;
ffStrbufInit(&gpu);
FF_STRBUF_CREATE(gpu);
char vendor[512];
ffpci_lookup_name(pacc, vendor, sizeof(vendor), PCI_LOOKUP_VENDOR, dev->vendor_id, dev->device_id);