Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser crashes on system's locked files (Windows) #49

Open
GoogleCodeExporter opened this issue Mar 31, 2015 · 1 comment
Open

Parser crashes on system's locked files (Windows) #49

GoogleCodeExporter opened this issue Mar 31, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. pe = PE("C:\\Windows\\System32\\catroot2\\edb.log")

What is the expected output? What do you see instead?

There should be no exceptions, but PEFormatError(), in fact:

Traceback (most recent call last):
  File "C:\Temp\pefile_mockup_3.py", line 15, in <module>
    pe = PE(file_name)
  File "build\bdist.win32\egg\pefile.py", line 1754, in __init__
  File "build\bdist.win32\egg\pefile.py", line 1810, in __parse__
UnboundLocalError: local variable 'fd' referenced before assignment


What version of the product are you using? On what operating system?

pefile-1.2.10-139.zip 

Please provide any additional information below.

File C:\Windows\System32\catroot2\edb.log is locked by this system process - 
svchost.exe running under NT AUTHORITY\NETWORK SERVICE account.

Original issue reported on code.google.com by [email protected] on 19 Aug 2014 at 5:52

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 27 Oct 2014 at 3:38

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant