ohio813 / pdbparse

Automatically exported from code.google.com/p/pdbparse
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 srpape@gmail.com on 24 Apr 2014 at 1:36