3 ms·
True enough, but look at the amount of code in parsing USB descriptors versus parsing filesystems: $ wc -l usb/core/*.c 21465 total $ wc -l `find
by rwmj 13y ago
True enough, but look at the amount of code in parsing USB descriptors versus parsing filesystems:
$ wc -l usb/core/*.c
21465 total
$ wc -l `find fs -name '*.c'`
1016460 total
Two orders of magnitude more. Now I'm not saying that USB descriptor parsing is free from problems, but there are an awful lot of obscure filesystem drivers in there ... Econet ADFS anyone?
Another place where libguestfs can help is in parsing files from the filesystem. We provide trusted parsing libraries that run inside the VM, so parsing (say) Unix /etc configuration or Windows Registry files is much safer.