angr / angr/cle

Fails to load PE binaries with non-utf-8 decodable bytes in section name

未關閉
#438 8 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
485
分支
135
平均合併
2 天 2 小時
30 天內合併 PR
15

描述

### Description

Loading a PE binary with non-utf-8 decodable bytes in the section name of one of its sections causes a crash [here](https://github.com/angr/cle/blob/73f40a0bae26ed2d9ca51d5532898fac26934222/cle/backends/pe/regions.py#L11)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 6: invalid continuation byte

Could add errors='ignore' flag to .decode() to drop non-utf-8 decodable bytes

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。