Projects
osmocom:nightly
open5gs
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 624
View file
open5gs_2.7.0.95.199f4.202403052026.dsc -> open5gs_2.7.0.96.32271.202403062026.dsc
Changed
@@ -2,7 +2,7 @@ Source: open5gs Binary: open5gs-common, open5gs-mme, open5gs-sgwc, open5gs-smf, open5gs-amf, open5gs-sgwu, open5gs-upf, open5gs-hss, open5gs-pcrf, open5gs-nrf, open5gs-scp, open5gs-sepp, open5gs-ausf, open5gs-udm, open5gs-pcf, open5gs-nssf, open5gs-bsf, open5gs-udr, open5gs, open5gs-dbg Architecture: any -Version: 2.7.0.95.199f4.202403052026 +Version: 2.7.0.96.32271.202403062026 Maintainer: Harald Welte <laforge@gnumonks.org> Uploaders: Sukchan Lee <acetcom@gmail.com> Homepage: https://open5gs.org @@ -32,8 +32,8 @@ open5gs-udr deb net optional arch=any open5gs-upf deb net optional arch=any Checksums-Sha1: - 501f71b675dbeaec6306b50bf2c993eb2ae2866c 14477536 open5gs_2.7.0.95.199f4.202403052026.tar.xz + ac9e7217b5335bbbab781c5c6f85fa7e0e855329 14476752 open5gs_2.7.0.96.32271.202403062026.tar.xz Checksums-Sha256: - fd31045e7ba3881ce02f68496f86e4c6c07a124c6d4dec26240ac09257f7acbe 14477536 open5gs_2.7.0.95.199f4.202403052026.tar.xz + 8950d18dedc4813c3c53c204f9d2f27a64efbc2ea8255f23e31fb635bb988932 14476752 open5gs_2.7.0.96.32271.202403062026.tar.xz Files: - 1eb8f602144bb13ed6c678177ae677fd 14477536 open5gs_2.7.0.95.199f4.202403052026.tar.xz + d437e0dccd5e265e418a34c9745c9524 14476752 open5gs_2.7.0.96.32271.202403062026.tar.xz
View file
open5gs_2.7.0.95.199f4.202403052026.tar.xz/.tarball-version -> open5gs_2.7.0.96.32271.202403062026.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -2.7.0.95-199f4.202403052026 +2.7.0.96-32271.202403062026
View file
open5gs_2.7.0.95.199f4.202403052026.tar.xz/debian/changelog -> open5gs_2.7.0.96.32271.202403062026.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -open5gs (2.7.0.95.199f4.202403052026) unstable; urgency=medium +open5gs (2.7.0.96.32271.202403062026) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom nightly feed - -- Osmocom OBS scripts <info@osmocom.org> Tue, 05 Mar 2024 20:27:40 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Wed, 06 Mar 2024 20:27:34 +0000 open5gs (2.7.0) unstable; urgency=medium
View file
open5gs_2.7.0.95.199f4.202403052026.tar.xz/lib/nas/5gs/conv.c -> open5gs_2.7.0.96.32271.202403062026.tar.xz/lib/nas/5gs/conv.c
Changed
@@ -110,6 +110,7 @@ ogs_plmn_id_mcc(&plmn_id), ogs_plmn_id_mnc(&plmn_id)); if (!suci) { ogs_error("ogs_mstrcatf() failed"); + ogs_free(suci); return NULL; } } else { @@ -117,6 +118,7 @@ ogs_plmn_id_mcc(&plmn_id), ogs_plmn_id_mnc(&plmn_id)); if (!suci) { ogs_error("ogs_mstrcatf() failed"); + ogs_free(suci); return NULL; } } @@ -152,9 +154,14 @@ scheme_output = (uint8_t *)mobile_identity->buffer + OGS_NAS_5GS_MOBILE_IDENTITY_SUCI_MIN_SIZE; + if (mobile_identity->length < OGS_NAS_5GS_MOBILE_IDENTITY_SUCI_MIN_SIZE) { + ogs_error("The length of Mobile Identity(%d) is less then the min(%d)", + mobile_identity->length, OGS_NAS_5GS_MOBILE_IDENTITY_SUCI_MIN_SIZE); + ogs_free(suci); + return NULL; + } scheme_output_size = mobile_identity->length - OGS_NAS_5GS_MOBILE_IDENTITY_SUCI_MIN_SIZE; - ogs_assert(scheme_output_size); scheme_output_string_or_bcd = ogs_calloc(1, scheme_output_size*2+1); ogs_assert(scheme_output_string_or_bcd);
View file
open5gs_2.7.0.95.199f4.202403052026.tar.xz/src/amf/gmm-handler.c -> open5gs_2.7.0.96.32271.202403062026.tar.xz/src/amf/gmm-handler.c
Changed
@@ -130,6 +130,12 @@ return OGS_5GMM_CAUSE_SEMANTICALLY_INCORRECT_MESSAGE; } + if (mobile_identity->length < OGS_NAS_5GS_MOBILE_IDENTITY_SUCI_MIN_SIZE) { + ogs_error("The length of Mobile Identity(%d) is less then the min(%d)", + mobile_identity->length, OGS_NAS_5GS_MOBILE_IDENTITY_SUCI_MIN_SIZE); + return OGS_5GMM_CAUSE_SEMANTICALLY_INCORRECT_MESSAGE; + } + mobile_identity_header = (ogs_nas_5gs_mobile_identity_header_t *)mobile_identity->buffer; @@ -886,6 +892,12 @@ return OGS_5GMM_CAUSE_SEMANTICALLY_INCORRECT_MESSAGE; } + if (mobile_identity->length < OGS_NAS_5GS_MOBILE_IDENTITY_SUCI_MIN_SIZE) { + ogs_error("The length of Mobile Identity(%d) is less then the min(%d)", + mobile_identity->length, OGS_NAS_5GS_MOBILE_IDENTITY_SUCI_MIN_SIZE); + return OGS_5GMM_CAUSE_SEMANTICALLY_INCORRECT_MESSAGE; + } + mobile_identity_header = (ogs_nas_5gs_mobile_identity_header_t *)mobile_identity->buffer;
View file
open5gs_2.7.0.95.199f4.202403052026.tar.xz/src/amf/gmm-sm.c -> open5gs_2.7.0.96.32271.202403062026.tar.xz/src/amf/gmm-sm.c
Changed
@@ -1365,7 +1365,17 @@ ogs_error("gmm_handle_identity_response() " "failed %d in type %d", gmm_cause, amf_ue->nas.message_type); - r = nas_5gs_send_gmm_reject(ran_ue, amf_ue, gmm_cause); + if (amf_ue->nas.message_type == + OGS_NAS_5GS_REGISTRATION_REQUEST || + amf_ue->nas.message_type == + OGS_NAS_5GS_SERVICE_REQUEST) + r = nas_5gs_send_gmm_reject(ran_ue, amf_ue, gmm_cause); + else + r = ngap_send_error_indication2( + ran_ue, + NGAP_Cause_PR_protocol, + NGAP_CauseProtocol_semantic_error); + ogs_expect(r == OGS_OK); ogs_assert(r != OGS_ERROR); OGS_FSM_TRAN(s, gmm_state_exception);
View file
open5gs_2.7.0.95.199f4.202403052026.tar.xz/tests/common/ngap-build.c -> open5gs_2.7.0.96.32271.202403062026.tar.xz/tests/common/ngap-build.c
Changed
@@ -2661,3 +2661,30 @@ return pkbuf; } + +ogs_pkbuf_t *test_ngap_build_malformed_initial_ue_message(int i) +{ + ogs_pkbuf_t *pkbuf = NULL; + const char *payloadTEST_NGAP_MAX_MESSAGE = { + "000f007300000700 5500034002000026 001d1c0602940a5f 7f5f7e105c000209" + "00007fff00000000 004c4c585f4e5f00 79000f405f7a8a1f 58755ff001940078" + "954e005a40012800 0340025fc0007040 010000ab4021205f 5f5f5f4f3d7fff10" + "de5f5f765f000000 0000000000000000 00000000000000" + "", + "", + + }; + uint16_t lenTEST_NGAP_MAX_MESSAGE = { + 119, + 0, + 0, + }; + char hexbufOGS_HUGE_LEN; + + pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN); + ogs_assert(pkbuf); + ogs_pkbuf_put_data(pkbuf, + ogs_hex_from_string(payloadi, hexbuf, sizeof(hexbuf)), leni); + + return pkbuf; +}
View file
open5gs_2.7.0.95.199f4.202403052026.tar.xz/tests/common/ngap-build.h -> open5gs_2.7.0.96.32271.202403062026.tar.xz/tests/common/ngap-build.h
Changed
@@ -80,6 +80,7 @@ NGAP_Cause_PR group, long cause); ogs_pkbuf_t *test_ngap_build_amf_configuration_ack(int i); +ogs_pkbuf_t *test_ngap_build_malformed_initial_ue_message(int i); #ifdef __cplusplus }
View file
open5gs_2.7.0.95.199f4.202403052026.tar.xz/tests/registration/crash-test.c -> open5gs_2.7.0.96.32271.202403062026.tar.xz/tests/registration/crash-test.c
Changed
@@ -1401,6 +1401,39 @@ test_ue_remove(test_ue); } +static void test5_func(abts_case *tc, void *data) +{ + int rv; + ogs_socknode_t *ngap; + ogs_pkbuf_t *sendbuf; + ogs_pkbuf_t *recvbuf; + ogs_ngap_message_t message; + + ngap = testngap_client(AF_INET); + ABTS_PTR_NOTNULL(tc, ngap); + + sendbuf = testngap_build_ng_setup_request(0x4000, 22); + ABTS_PTR_NOTNULL(tc, sendbuf); + rv = testgnb_ngap_send(ngap, sendbuf); + ABTS_INT_EQUAL(tc, OGS_OK, rv); + + recvbuf = testgnb_ngap_read(ngap); + ABTS_PTR_NOTNULL(tc, recvbuf); + ogs_pkbuf_free(recvbuf); + + sendbuf = test_ngap_build_malformed_initial_ue_message(0); + ABTS_PTR_NOTNULL(tc, sendbuf); + + rv = testgnb_ngap_send(ngap, sendbuf); + ABTS_INT_EQUAL(tc, OGS_OK, rv); + + recvbuf = testgnb_ngap_read(ngap); + ABTS_PTR_NOTNULL(tc, recvbuf); + ogs_pkbuf_free(recvbuf); + + testgnb_ngap_close(ngap); +} + abts_suite *test_crash(abts_suite *suite) { suite = ADD_SUITE(suite) @@ -1409,6 +1442,7 @@ abts_run_test(suite, test2_func, NULL); abts_run_test(suite, test3_func, NULL); abts_run_test(suite, test4_issues2842_func, NULL); + abts_run_test(suite, test5_func, NULL); return suite; }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.