Read and write every text field on the wire as latin1 #16

Merged
lilleman merged 6 commits from cstring-latin1 into main 2026-09-21 08:28:44 +02:00
Owner

The codec read C-Octet and Octet Strings with toString('ascii'), which masks bit 7, and wrote them with write(text, 'ascii'), which does not. Both halves are now latin1, and a character past U+00FF is refused instead of truncated to its low octet.

The codec read C-Octet and Octet Strings with `toString('ascii')`, which masks bit 7, and wrote them with `write(text, 'ascii')`, which does not. Both halves are now latin1, and a character past U+00FF is refused instead of truncated to its low octet.
lilleman added 1 commit 2026-09-21 07:54:28 +02:00
Read and write every text field on the wire as latin1
Mirror / push (push) Successful in 5s
Test / lint (pull_request) Successful in 22s
Test / test (18) (pull_request) Successful in 29s
Test / test (20) (pull_request) Successful in 30s
Test / test (22) (pull_request) Successful in 30s
Test / test (24) (pull_request) Successful in 29s
Test / test (26) (pull_request) Successful in 30s
7db242e375
lilleman added 1 commit 2026-09-21 07:59:09 +02:00
Refuse a NULL inside a C-Octet String, which ends the field on the peer
Mirror / push (push) Successful in 4s
Test / lint (pull_request) Successful in 21s
Test / test (18) (pull_request) Successful in 29s
Test / test (20) (pull_request) Successful in 29s
Test / test (22) (pull_request) Successful in 31s
Test / test (24) (pull_request) Successful in 35s
Test / test (26) (pull_request) Successful in 30s
c1e0407942
lilleman added 1 commit 2026-09-21 08:08:44 +02:00
Cover the guarded address writers, and cut what the code already says
Mirror / push (push) Successful in 5s
Test / lint (pull_request) Successful in 22s
Test / test (18) (pull_request) Successful in 29s
Test / test (20) (pull_request) Successful in 30s
Test / test (22) (pull_request) Successful in 37s
Test / test (24) (pull_request) Successful in 29s
Test / test (26) (pull_request) Successful in 30s
f870b7530f
lilleman added 1 commit 2026-09-21 08:14:09 +02:00
Name the option a refused address came from, and the data a 0.5.0 consumer stored
Mirror / push (push) Successful in 4s
Test / lint (pull_request) Successful in 20s
Test / test (18) (pull_request) Successful in 35s
Test / test (20) (pull_request) Successful in 30s
Test / test (22) (pull_request) Successful in 29s
Test / test (24) (pull_request) Successful in 29s
Test / test (26) (pull_request) Successful in 30s
dc690b912f
lilleman added 1 commit 2026-09-21 08:21:01 +02:00
Say what is true for a TLV too, and cover the to half of the check
Mirror / push (push) Successful in 5s
Test / lint (pull_request) Successful in 21s
Test / test (18) (pull_request) Successful in 30s
Test / test (20) (pull_request) Successful in 29s
Test / test (22) (pull_request) Successful in 31s
Test / test (24) (pull_request) Successful in 29s
Test / test (26) (pull_request) Successful in 30s
a7eb4923f5
lilleman added 1 commit 2026-09-21 08:25:40 +02:00
Cut the prose the code, the error and the record already carry
Test / lint (pull_request) Successful in 21s
Test / test (18) (pull_request) Successful in 29s
Test / test (20) (pull_request) Successful in 29s
Test / test (22) (pull_request) Successful in 30s
Test / test (24) (pull_request) Successful in 30s
Test / test (26) (pull_request) Successful in 29s
Mirror / push (push) Successful in 5s
36a1c6ea7b
lilleman marked the pull request as ready for review 2026-09-21 08:28:18 +02:00
lilleman merged commit 36a1c6ea7b into main 2026-09-21 08:28:44 +02:00
lilleman deleted branch cstring-latin1 2026-09-21 08:28:44 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: larvit/smpp-js#16