summary refs log tree commit diff stats
path: root/results/scraper/launchpad-without-comments/1686364
blob: 73bf23a1e0fee3ae10bdee35eff5e1ad30a8c72f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
qemu -readconfig/-writeconfig cannot handle quotes in values

$ qemu-system-x86_64 -drive file=/tmp/foo\" -writeconfig -
# qemu config file

[drive]
  file = "/tmp/foo""

For bonus points, try to construct a value qemu config file that contains a quoted value.  It's pretty clear (from looking at the code also) that this is not possible.

Also:

- maximum value length is hard-coded in the parser at 1023 characters (for no apparent reason)

- the format is undocumented

- don't use sscanf for parsing!