Projects
osmocom:master
open5gs
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 407
View file
commit_199f4c7add495422985f9edfd230dd2b7e55505b.txt
Deleted
View file
commit_322719f3e729aafacf531e85552d7a977fff3e2a.txt
Added
View file
open5gs_2.7.0.95.199f4.dsc -> open5gs_2.7.0.96.32271.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 +Version: 2.7.0.96.32271 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: - 6c0a44e206138c13a43f177ab5306c5ffd4017fb 14477064 open5gs_2.7.0.95.199f4.tar.xz + 1844c940b34025441f1675f4bb3fc4575cbff416 14477564 open5gs_2.7.0.96.32271.tar.xz Checksums-Sha256: - c19755fc105e8ae763d8d358123bb17d3ea0daacbcf04702705e53523ecb43fb 14477064 open5gs_2.7.0.95.199f4.tar.xz + 2affbe6d1889951f8ec1cffc5ffb5446144edc5f90befcf0db19253cad5459c0 14477564 open5gs_2.7.0.96.32271.tar.xz Files: - e25f897d0df0f2b129b447e89f267a7e 14477064 open5gs_2.7.0.95.199f4.tar.xz + 62a52048d2917617f0cabd44213c0251 14477564 open5gs_2.7.0.96.32271.tar.xz
View file
open5gs_2.7.0.95.199f4.tar.xz/.tarball-version -> open5gs_2.7.0.96.32271.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -2.7.0.95-199f4 +2.7.0.96-32271
View file
open5gs_2.7.0.95.199f4.tar.xz/debian/changelog -> open5gs_2.7.0.96.32271.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -open5gs (2.7.0.95.199f4) unstable; urgency=medium +open5gs (2.7.0.96.32271) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Mon, 04 Mar 2024 12:03:46 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Tue, 05 Mar 2024 22:42:02 +0000 open5gs (2.7.0) unstable; urgency=medium
View file
open5gs_2.7.0.95.199f4.tar.xz/lib/nas/5gs/conv.c -> open5gs_2.7.0.96.32271.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.tar.xz/src/amf/gmm-handler.c -> open5gs_2.7.0.96.32271.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.tar.xz/src/amf/gmm-sm.c -> open5gs_2.7.0.96.32271.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.tar.xz/tests/common/ngap-build.c -> open5gs_2.7.0.96.32271.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.tar.xz/tests/common/ngap-build.h -> open5gs_2.7.0.96.32271.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.tar.xz/tests/registration/crash-test.c -> open5gs_2.7.0.96.32271.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
.