Alir3z4 / Alir3z4/html2text

charref() maybe throw OverflowError: Python int too large to convert to C int

Open
#398 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
296
PR merge metrics
No merged PRs in 30d

Description

in charref():
`
if name[0] in ["x", "X"]:
c = int(name[1:], 16)
else:
c = int(name)
`
if name like "xabcdeabcdeabcdeabcde" will cause chr(c) throw OverflowError.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.