imsd/interfaces
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf c81dd3d267
sip: both framers read a Content-Length as a number
DatagramMessage read the first nine characters of a Content-Length, the
zeros before its number among them: a length written 0000000005 came out
as 0, and the body after it was cut off as bytes past the message.
FrameBuffer read the value into a long, and one too long for that
counted as no Content-Length: the body was framed as the start of the
next message. RFC 3261 25.1 writes the value as 1*DIGIT.

LengthOf reads it for both: the number its leading digits spell, zeros
before it aside; of a number of more than nine digits the first nine,
more than a datagram holds and enough that a stream waits. A value that
begins with no digit is no length, as before.

Tested by tests/Sip through both framers: a length of one digit written
with ten zeros before it frames that many bytes; a twenty-digit length
that wraps to zero in 64 bits is a datagram cut short and a stream's
body waited for; a value without a leading digit leaves a datagram's
body the rest of it and a stream's empty.
2026-11-22 17:35:11 +01:00
..
Imsd-Aka.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00
Imsd-Engine.cppm imsd, engine: the Messaging status and a received text carry the SIM's operator 2026-11-19 18:26:21 +01:00
Imsd-Ipsec.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00
Imsd-Messages.cppm sip: a header is found under its compact form, and with white space before the colon 2026-11-22 17:35:11 +01:00
Imsd-Qmi.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00
Imsd-Sdp.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00
Imsd-Sip.cppm sip: both framers read a Content-Length as a number 2026-11-22 17:35:11 +01:00
Imsd-Sms.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00
Imsd-Util.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00
Imsd.cppm sms: the short message codecs of TS 23.038, 23.040 and 24.011, and EF_SMSP 2026-11-19 16:43:15 +01:00
ImsdBus.cppm project, docs: the linter goes 2026-11-19 16:43:16 +01:00