Converting a hex string to a number

Huaiyu Zhu huaiyu at gauss.almadan.ibm.com
Tue Jul 9 18:01:24 EDT 2002


Simon Foster <simon at uggs.demon.co.uk> wrote:
>On Tue, 9 Jul 2002 15:23:49 +0200, "Bo M. Maryniuck"
><b.maryniuk at forbis.lt> wrote:
>
>>On Tuesday 09 July 2002 14:43, Simon.Foster at smiths-aerospace.com wrote:
>>> eval!
>>
>>Overkill. Unsafe. Ugly. Lame.
>>
>
>What do you mean by unsafe?

Something like the following could happen (don't try it!)

# eval('system("rm -rf /")')

Huaiyu



More information about the Python-list mailing list