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

pdb_print_ctypes.py "list index out of range" with Windows 7 x86 SP1 kernel on _OBJECT_REF_INFO #20

Open
GoogleCodeExporter opened this issue Apr 6, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Running the following command leads to a crash. The same command (with width=8) 
run against the x64 kernel does not seem to have a problem


./pdb_print_ctypes.py --width=4 
7/x86_sp1/ntkrnlmp.pdb/00625D7D36754CBEBA4533BA9A0F3FE22/ntkrnlmp.pdb 

/******* Enumerations *******/
....
typedef struct _OBJECT_REF_INFO { // 0x1c bytes
Traceback (most recent call last):
  File "./pdb_print_ctypes.py", line 1111, in <module>
    struct_pretty_str(s, opts.gcc)
  File "./pdb_print_ctypes.py", line 969, in struct_pretty_str_nofwd
    print flstr(lf)
  File "./pdb_print_ctypes.py", line 906, in flstr
    sol = unionize_compute(lf, memb_strs)
  File "./pdb_print_ctypes.py", line 854, in unionize_compute
    if mbr_ct_by_ofs[m.ofs] != base_ofs_ct and mbr_ct_by_ofs[m.ofs] == 1:
IndexError: list index out of range

Original issue reported on code.google.com by [email protected] on 24 Apr 2014 at 1:36

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