#120 Access violation in win32file.DecryptFile

closed-works-for-me
nobody
win32 (141)
5
2004-10-08
2004-06-09
Joe Francia
No

On both Windows 2000 and XP, decrypting an NTFS
encrypted file or directory with
win32file.DecryptFile() crashes Python. The decryption
succeeds, but I get an access violation "instruction
0x00000000 referenced memory at 0x00000000". This
happens with both normal and unicode strings passed as
filenames. win32file.EncryptFile() works fine. I've
attached the XP debug output.

#Sample code
import win32file
win32file.EncryptFile('c:/temp/somefile.txt')
win32file.DecryptFile('c:/temp/somefile.txt')

Discussion

  • Mark Hammond
    Mark Hammond
    2004-10-08

    • status: open --> open-works-for-me
     
  • Mark Hammond
    Mark Hammond
    2004-10-08

    Logged In: YES
    user_id=14198

    This works fine for me. I've added it to the test suite. I
    can't find evidence of it having been fixed either - so I
    don't know what the story is there.

     
  • Joe Francia
    Joe Francia
    2004-10-08

    • status: open-works-for-me --> closed-works-for-me
     
  • Joe Francia
    Joe Francia
    2004-10-08

    Logged In: YES
    user_id=57039

    It also works for me, now. It seems one of the updates
    between finding the bug and now fixed it.