OverflowError: Python int too large to convert to C long
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 785
- 派生
- 170
- 平均合并
- 2 天 21 小时
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
williballenthin/python-evtx 的其他 Issue
-
Infinite loop in ChunkHeader._load_strings / _load_templates on a crafted chunk (cyclic next_offset)可能已有人在做 @memx13 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
williballenthin/python-evtx#101 ·
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 2/5 1-3 小时 新手友好度 42/100
williballenthin/python-evtx#94 · 2 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
williballenthin/python-evtx#85 · 2 条评论 ·
查看 williballenthin/python-evtx 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
slavakurilyak/awesome-ai-agents#845 ·
维护者通常 1 天内回复
-
tests: pin that the atomic writers in utils/paths.py stage the temporary file in the target's directory可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭difficulty:2 enhancement good first issue
难度 1/5 1-3 小时 新手友好度 92/100
MakazhanAlpamys/Soup#2178 ·
维护者通常 1 天内回复
-
[BUG] dcg.waggr permutation p-values are folded twice, so near-zero scores get the smallest p-values未关闭
难度 2/5 1-3 小时 新手友好度 75/100
scverse/rapids-singlecell#854 ·
维护者通常 1 天内回复
-
Slang input: int8_t4_packed and uint8_t4_packed are copied into CrossGL可能已有人在做 @ninglinLiu 今天认领。 未关闭area:frontend backend:slang bug direction:input
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 13 天内回复