fix(towercore): bind exported context to session

- Force EXPORT_CONTEXT to use session->UE after both peer selector paths.
- Strip tag 0x09 and 0x0b peer selectors in the protocol guard.
This commit is contained in:
TakuyaYagam1 committed 2026-11-29 15:41:12 +03:00
1 parent ce5eb09db3
commit aba00ab3ed
3 files changed
+23 -7

No files matched your search

+6 -3
View File
@@ -7,9 +7,12 @@ from pathlib import Path
path = Path("/towercore")
data = bytearray(path.read_bytes())
original = bytes.fromhex("84 00 c2 90")
replacement = bytes.fromhex("25 10 00 00")
for offset in (0x24604, 0x2487C):
patches = (
(0x23DC0, bytes.fromhex("d7 04 a0 10"), bytes.fromhex("10 00 65 de")),
(0x24604, bytes.fromhex("84 00 c2 90"), bytes.fromhex("25 10 00 00")),
(0x2487C, bytes.fromhex("84 00 c2 90"), bytes.fromhex("25 10 00 00")),
)
for offset, original, replacement in patches:
actual = bytes(data[offset : offset + len(original)])
if actual != original:
raise SystemExit(f"unexpected bytes at {offset:#x}: {actual.hex()}")