Exploit databaseDownload repository ZIP
GH-22594ad0852c160d7cacb63860cab7c0
2932796375github/cve-2026-43499_oppo-mt6835
Sources for CVE-2026-43499
165 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files29
2932796375github/cve-2026-43499_oppo-mt6835Revision ebae4c33975b
- ↑..Parent directory
- __pycache__/
- table_grapheme_overrides/
- __init__.py
- _clip.py
- _constants.py
- _wcswidth.py
- _wcwidth.py
- _width.py
- align.py
- bisearch.py
- control_codes.py
- escape_sequences.py
- grapheme.py
- hyperlink.py
- py.typed
- sgr_state.py
- table_ambiguous.py
- table_grapheme.py
- table_mc.py
- table_overrides.py
- table_term_programs.py
- table_vs15.py
- table_vs16.py
- table_wide.py
- table_zero.py
- text_sizing.py
- textwrap.py
- unicode_versions.py
- wcwidth.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
work_ota/venv/lib/python3.12/site-packages/wcwidth/bisearch.py
Python · 813 bytes"""Binary search function for Unicode interval tables."""
from __future__ import annotations
def bisearch(ucs: int, table: tuple[tuple[int, int], ...]) -> int:
"""
Binary search in interval table.
:param ucs: Ordinal value of unicode character.
:param table: Tuple of starting and ending ranges of ordinal values, in form of ``((start, end),
...)``.
:returns: 1 if ordinal value ucs is found within lookup table, else 0.
"""
lbound = 0
ubound = len(table) - 1
if ucs < table[0][0] or ucs > table[ubound][1]:
return 0
while ubound >= lbound:
mid = (lbound + ubound) // 2
if ucs > table[mid][1]:
lbound = mid + 1
elif ucs < table[mid][0]:
ubound = mid - 1
else:
return 1
return 0