OverflowError: Python int too large to convert to C long
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 28/100
Línea de trabajo
The traceback points to Evtx/Nodes.py in TemplateInstanceNode and Evtx/BinaryParser.py in unpack_dword. Start by reading those methods and the parsing path through fast_template_instance(); the report gives no sample file or reproducer beyond the CAPI2 EVTX. Done means parsing that file no longer raises OverflowError while processing its record.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Thanks for the hard work in this project. It's really helpful.
I just have one problem to report, when I try and parse the Windows EVTX file 'CAPI2' I get the error below. Is there a workaround please? I am actually using the library to parse every EVTX file in a certain directory and this EVTX is the only one that throws up a problem!
File "g:\Python Code\Events\Evtx2Time.py", line 121, in <module>
main()
File "g:\Python Code\Events\Evtx2Time.py", line 71, in main
for xml, record in evtx_file_xml_view(fh):
File "C:\Python27\lib\Evtx\Views.py", line 221, in evtx_file_xml_view
record_str = _build_record_xml(record, cache=cache)
File "C:\Python27\lib\Evtx\Views.py", line 172, in _build_record_xml
xml = rec(record.root())
File "C:\Python27\lib\Evtx\Views.py", line 163, in rec
subs_strs.append(rec(sub))
File "C:\Python27\lib\Evtx\Views.py", line 154, in rec
f = _make_template_xml_view(root_node, cache=cache)
File "C:\Python27\lib\Evtx\Views.py", line 120, in _make_template_xml_view
template_instance = root_node.fast_template_instance()
File "C:\Python27\lib\Evtx\Nodes.py", line 909, in fast_template_instance
return TemplateInstanceNode(self._buf, ofs, self._chunk, self)
File "C:\Python27\lib\Evtx\Nodes.py", line 716, in __init__
self._data_length += new_template.length()
File "C:\Python27\lib\Evtx\Nodes.py", line 211, in length
return self.tag_length() + self.data_length()
File "C:\Python27\lib\Evtx\BinaryParser.py", line 205, in no_length_handler
return f(offset)
File "C:\Python27\lib\Evtx\BinaryParser.py", line 356, in unpack_dword
return struct.unpack_from("<I", self._buf, o)[0]
OverflowError: Python int too large to convert to C long
- Lenguaje dominante
- Python
- Estrellas
- 785
- Forks
- 170
- Merge medio
- 2 d 21 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de williballenthin/python-evtx
-
Infinite loop in ChunkHeader._load_strings / _load_templates on a crafted chunk (cyclic next_offset)Posiblemente ocupada @memx13 la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
williballenthin/python-evtx#101 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 42/100
williballenthin/python-evtx#94 · 2 comentarios ·
-
parse data from dirty chunksAbiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
williballenthin/python-evtx#85 · 2 comentarios ·
Todos los issues de williballenthin/python-evtx
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
GoogleCloudPlatform/gce-rescue#195 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
intake mcp-intake needs-ac needs-human-review priority:medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Ikalus1988/MisakaNet#3848 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
521xueweihan/HelloGitHub#4105 ·
-
bug size:XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día