lists.osmocom.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
August
July
June
May
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
List overview
Download
gerrit-log
February 2023
----- 2025 -----
August 2025
July 2025
June 2025
May 2025
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
gerrit-log@lists.osmocom.org
1 participants
2601 discussions
Start a n
N
ew thread
Change in libosmocore[master]: gsm0808_chan_indicator: add SPEECH_CTM_TEXT_TELEPHONY
by osmith
osmith has submitted this change. (
https://gerrit.osmocom.org/c/libosmocore/+/31264
) Change subject: gsm0808_chan_indicator: add SPEECH_CTM_TEXT_TELEPHONY ...................................................................... gsm0808_chan_indicator: add SPEECH_CTM_TEXT_TELEPHONY Add it, so a follow-up patch can use it in gsm0808_dec_channel_type where 3GPP TS 48.008 § 3.2.2.11 refers to "if octet 3 indicates speech or speech + CTM Text Telephony". Related: OS#4393 Change-Id: Iaf12202c89b68290c2121bc016d08b9200a7278a --- M include/osmocom/gsm/protocol/gsm_08_08.h 1 file changed, 1 insertion(+), 0 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve fixeria: Looks good to me, approved diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h index 96ac6af..a33b01a 100644 --- a/include/osmocom/gsm/protocol/gsm_08_08.h +++ b/include/osmocom/gsm/protocol/gsm_08_08.h @@ -443,6 +443,7 @@ GSM0808_CHAN_SPEECH = 1, GSM0808_CHAN_DATA = 2, GSM0808_CHAN_SIGN = 3, + GSM0808_CHAN_SPEECH_CTM_TEXT_TELEPHONY = 4, }; /* GSM 08.08 3.2.2.11 Channel Type */ -- To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/31264
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Iaf12202c89b68290c2121bc016d08b9200a7278a Gerrit-Change-Number: 31264 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-MessageType: merged
2 years, 6 months
1
0
0
0
Change in libosmocore[master]: gsm0808_dec_channel_type: add missing len check
by osmith
osmith has submitted this change. (
https://gerrit.osmocom.org/c/libosmocore/+/31262
) Change subject: gsm0808_dec_channel_type: add missing len check ...................................................................... gsm0808_dec_channel_type: add missing len check Stop iterating if the extension bit (0x80) is set but elem is too short to read another byte. Related: OS#4393 Change-Id: Id37109dba0f5d40f4b83f0cef9b1dbd9d6bb2c68 --- M src/gsm/gsm0808_utils.c M tests/gsm0808/gsm0808_test.c 2 files changed, 15 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve fixeria: Looks good to me, approved diff --git a/src/gsm/gsm0808_utils.c b/src/gsm/gsm0808_utils.c index 9d787f2..83d2ce7 100644 --- a/src/gsm/gsm0808_utils.c +++ b/src/gsm/gsm0808_utils.c @@ -550,6 +550,9 @@ elem++; for (i = 0; i < ARRAY_SIZE(ct->perm_spch); i++) { + if (elem - old_elem >= len) + return -EOVERFLOW; + byte = *elem; elem++; ct->perm_spch[i] = byte & 0x7f; diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c index ab9f29b..f68d560 100644 --- a/tests/gsm0808/gsm0808_test.c +++ b/tests/gsm0808/gsm0808_test.c @@ -1117,6 +1117,17 @@ msgb_free(msg); } +static void test_gsm0808_dec_channel_type_err(void) +{ + struct gsm0808_channel_type ct; + int rc; + + /* Speech: extension bit is set in last byte */ + const uint8_t hex[] = { 0x01, 0x0b, 0xa1, 0xa5 }; + rc = gsm0808_dec_channel_type(&ct, hex, sizeof(hex)); + OSMO_ASSERT(rc == -EOVERFLOW); +} + static void test_gsm0808_enc_dec_encrypt_info(void) { struct gsm0808_encrypt_info enc_ei = { @@ -2569,6 +2580,7 @@ test_gsm0808_enc_dec_speech_codec_list(); test_gsm0808_enc_dec_empty_speech_codec_list(); test_gsm0808_enc_dec_channel_type(); + test_gsm0808_dec_channel_type_err(); test_gsm0808_enc_dec_encrypt_info(); test_gsm0808_enc_dec_cell_id_list_lac(); -- To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/31262
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Id37109dba0f5d40f4b83f0cef9b1dbd9d6bb2c68 Gerrit-Change-Number: 31262 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-MessageType: merged
2 years, 6 months
1
0
0
0
Change in libosmocore[master]: test gsm0808 enc dec channel type -> … speech
by osmith
osmith has submitted this change. (
https://gerrit.osmocom.org/c/libosmocore/+/31263
) Change subject: test_gsm0808_enc_dec_channel_type -> …_speech ...................................................................... test_gsm0808_enc_dec_channel_type -> …_speech Rename the function in preparation for a new test for _data. Related: OS#4393 Change-Id: Ifa6654cc0a38f160268698efaa4bb867be3f7701 --- M tests/gsm0808/gsm0808_test.c 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve fixeria: Looks good to me, approved diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c index f68d560..a9f1311 100644 --- a/tests/gsm0808/gsm0808_test.c +++ b/tests/gsm0808/gsm0808_test.c @@ -1086,7 +1086,7 @@ msgb_free(msg); } -static void test_gsm0808_enc_dec_channel_type(void) +static void test_gsm0808_enc_dec_channel_type_speech(void) { struct gsm0808_channel_type enc_ct = { .ch_indctr = GSM0808_CHAN_SPEECH, @@ -2579,7 +2579,7 @@ test_gsm0808_enc_dec_speech_codec_with_cfg(); test_gsm0808_enc_dec_speech_codec_list(); test_gsm0808_enc_dec_empty_speech_codec_list(); - test_gsm0808_enc_dec_channel_type(); + test_gsm0808_enc_dec_channel_type_speech(); test_gsm0808_dec_channel_type_err(); test_gsm0808_enc_dec_encrypt_info(); -- To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/31263
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ifa6654cc0a38f160268698efaa4bb867be3f7701 Gerrit-Change-Number: 31263 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-MessageType: merged
2 years, 6 months
1
0
0
0
Change in libosmocore[master]: gsm0808_chan_indicator: add SPEECH_CTM_TEXT_TELEPHONY
by fixeria
Attention is currently required from: osmith. fixeria has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/31264
) Change subject: gsm0808_chan_indicator: add SPEECH_CTM_TEXT_TELEPHONY ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/31264
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Iaf12202c89b68290c2121bc016d08b9200a7278a Gerrit-Change-Number: 31264 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 09 Feb 2023 12:01:21 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
2 years, 6 months
1
0
0
0
Change in libosmocore[master]: test gsm0808 enc dec channel type -> … speech
by fixeria
Attention is currently required from: osmith. fixeria has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/31263
) Change subject: test_gsm0808_enc_dec_channel_type -> …_speech ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/31263
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ifa6654cc0a38f160268698efaa4bb867be3f7701 Gerrit-Change-Number: 31263 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 09 Feb 2023 12:00:16 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
2 years, 6 months
1
0
0
0
Change in libosmocore[master]: gsm0808_dec_channel_type: add missing len check
by fixeria
Attention is currently required from: osmith. fixeria has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/31262
) Change subject: gsm0808_dec_channel_type: add missing len check ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/31262
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Id37109dba0f5d40f4b83f0cef9b1dbd9d6bb2c68 Gerrit-Change-Number: 31262 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 09 Feb 2023 11:59:57 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
2 years, 6 months
1
0
0
0
Change in libosmocore[master]: test gsm0808 enc dec channel type -> … speech
by pespin
Attention is currently required from: osmith. pespin has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/31263
) Change subject: test_gsm0808_enc_dec_channel_type -> …_speech ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/31263
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ifa6654cc0a38f160268698efaa4bb867be3f7701 Gerrit-Change-Number: 31263 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 09 Feb 2023 11:43:11 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
2 years, 6 months
1
0
0
0
Change in libosmocore[master]: gsm0808_dec_channel_type: add missing len check
by pespin
Attention is currently required from: osmith. pespin has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/31262
) Change subject: gsm0808_dec_channel_type: add missing len check ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/31262
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Id37109dba0f5d40f4b83f0cef9b1dbd9d6bb2c68 Gerrit-Change-Number: 31262 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 09 Feb 2023 11:42:54 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
2 years, 6 months
1
0
0
0
Change in libosmocore[master]: gsm0808_enc/dec_channel_type: support data
by pespin
Attention is currently required from: osmith. pespin has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/31265
) Change subject: gsm0808_enc/dec_channel_type: support data ...................................................................... Patch Set 2: Code-Review+1 (2 comments) File include/osmocom/gsm/protocol/gsm_08_08.h:
https://gerrit.osmocom.org/c/libosmocore/+/31265/comment/7b674970_d7ae78a9
PS2, Line 503: /* GSM 08.08 3.2.2.11 Channel Type TS 48.008 everywhere? File src/gsm/gsm0808_utils.c:
https://gerrit.osmocom.org/c/libosmocore/+/31265/comment/00583749_83fc424a
PS2, Line 511: byte = ct->data_transparent ? 0x40 : 0x00; /* Set T/NT */ this looks a bit confusing. I'd be clearer probably: byte = ct->data_rate; if (ct->data_transparent) byte |= 0x40; -- To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/31265
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ib7b75c9d86aace329decf20003b68de459021c64 Gerrit-Change-Number: 31265 Gerrit-PatchSet: 2 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 09 Feb 2023 11:41:42 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
2 years, 6 months
1
0
0
0
Change in libosmocore[master]: gsm0808_chan_indicator: add SPEECH_CTM_TEXT_TELEPHONY
by pespin
Attention is currently required from: osmith. pespin has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/31264
) Change subject: gsm0808_chan_indicator: add SPEECH_CTM_TEXT_TELEPHONY ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/31264
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Iaf12202c89b68290c2121bc016d08b9200a7278a Gerrit-Change-Number: 31264 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 09 Feb 2023 11:33:34 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
2 years, 6 months
1
0
0
0
← Newer
1
...
186
187
188
189
190
191
192
...
261
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
Results per page:
10
25
50
100
200