[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1686364] [NEW] qemu -readconfig/-writeconfig cannot ha
From: |
Richard Jones |
Subject: |
[Qemu-devel] [Bug 1686364] [NEW] qemu -readconfig/-writeconfig cannot handle quotes in values |
Date: |
Wed, 26 Apr 2017 10:25:02 -0000 |
Public bug reported:
$ qemu-system-x86_64 -drive file=/tmp/foo\" -writeconfig -
# qemu config file
[drive]
file = "/tmp/foo""
For bonus points, try to construct a valid 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!
** Affects: qemu
Importance: Undecided
Status: New
** Description changed:
$ qemu-system-x86_64 -drive file=/tmp/foo\" -writeconfig -
# qemu config file
[drive]
- file = "/tmp/foo""
+ file = "/tmp/foo""
- For bonus points, try to construct a value qemu config file that
+ For bonus points, try to construct a valid 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!
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1686364
Title:
qemu -readconfig/-writeconfig cannot handle quotes in values
Status in QEMU:
New
Bug description:
$ qemu-system-x86_64 -drive file=/tmp/foo\" -writeconfig -
# qemu config file
[drive]
file = "/tmp/foo""
For bonus points, try to construct a valid 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!
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1686364/+subscriptions
- [Qemu-devel] [Bug 1686364] [NEW] qemu -readconfig/-writeconfig cannot handle quotes in values,
Richard Jones <=