Message16419
Logged In: YES
user_id=589306
The actual filename from the zipfile is:
filename =
'DOCUME~1\\CHRISS~1\\LOCALS~1\\Temp\\Demo.exe\x00\x00scr\x00000000000000000000.txt'
Notice there is a \x00 after Demo.exe. My guess is InfoZip
stores the filename in a null terminated string and this
extra null character in the filename terminates it at this
point. Python doesn't care if you have nulls in the string,
so it prints the entire filename.
You can see the zip file format description at
ftp://ftp.info-zip.org/pub/infozip/doc/appnote-981119-iz.zip
The format does say:
2) String fields are not null terminated, since the
length is given explicitly.
But it doesn't really say if strings are allowed to have
nulls in them.
So does Python or InfoZip get this right?
|
|
Date |
User |
Action |
Args |
2007-08-23 14:13:56 | admin | link | issue755031 messages |
2007-08-23 14:13:56 | admin | create | |
|