angr / angr/cle

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

Aperta
#438 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
485
Fork
135
Merge medio
2g 2h
PR unite (30g)
15

Descrizione

### 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.