qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 01/11] QMP: Introduce specification file


From: Jamie Lokier
Subject: Re: [Qemu-devel] [PATCH 01/11] QMP: Introduce specification file
Date: Wed, 24 Jun 2009 17:00:39 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Anthony Liguori wrote:
> The odd thing about it is you still have to parse json in JavaScript
> to avoid security problems.  Parsing json in js seems to eliminate
> 99% of the useness of it.

I think this is mistaken.  Last time I looked, you would check the
whole string with a simple regexp to look for badness, and that
confirms it's safe to eval the json.  Good json always passes the
regexp.  Not that I've ever done any json :-)

-- Jamie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]