Projects
osmocom:latest
libosmocore
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 17
View file
libosmocore.spec
Changed
@@ -14,13 +14,13 @@ Name: libosmocore Requires: osmocom-latest -Version: 1.12.0 +Version: 1.12.1 Release: 0 Summary: The Open Source Mobile Communications Core Library License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND AGPL-3.0-or-later Group: Productivity/Telephony/Utilities Url: https://osmocom.org/projects/libosmocore/wiki/Libosmocore -Source: libosmocore_1.12.0.tar.xz +Source: libosmocore_1.12.1.tar.xz Source1: rpmlintrc BuildRequires: automake >= 1.6 BuildRequires: libtool >= 2
View file
libosmocore_1.12.0.dsc -> libosmocore_1.12.1.dsc
Changed
@@ -2,7 +2,7 @@ Source: libosmocore Binary: libosmocore, libosmocodec4, libosmocodec-doc, libosmocoding0, libosmocoding-doc, libosmocore22, libosmocore-doc, libosmogb14, libosmogb-doc, libosmogsm20, libosmogsm-doc, libosmoisdn0, libosmoisdn-doc, libosmovty13, libosmovty-doc, libosmoctrl0, libosmoctrl-doc, libosmosim2, libosmosim-doc, libosmousb0, libosmousb-doc, libosmocore-dev, libosmocore-utils, libosmocore-dbg Architecture: any all -Version: 1.12.0 +Version: 1.12.1 Maintainer: Osmocom team <openbsc@lists.osmocom.org> Homepage: https://projects.osmocom.org/projects/libosmocore Standards-Version: 3.9.8 @@ -35,8 +35,8 @@ libosmovty-doc deb doc optional arch=all libosmovty13 deb libs optional arch=any Checksums-Sha1: - ac342b87dec7e61f4c0b8c156eb49dbc13ca7ee2 1135280 libosmocore_1.12.0.tar.xz + e4772708e274565f122ec46f94992f0859b47fea 1135416 libosmocore_1.12.1.tar.xz Checksums-Sha256: - c0d3e473d72d8c962e1555f8a24572ecf1bae56757666f91f827ac2cb7013ecf 1135280 libosmocore_1.12.0.tar.xz + de04fe3ab411a20a421ff9e90cab6aecff968ff0af4446bca282f48c932eb9df 1135416 libosmocore_1.12.1.tar.xz Files: - 565988e329f6f9be8d28615f26ec6728 1135280 libosmocore_1.12.0.tar.xz + 9b274591986ca5feb7bcbc1c0116575e 1135416 libosmocore_1.12.1.tar.xz
View file
libosmocore_1.12.0.tar.xz/.tarball-version -> libosmocore_1.12.1.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -1.12.0 +1.12.1
View file
libosmocore_1.12.0.tar.xz/debian/changelog -> libosmocore_1.12.1.tar.xz/debian/changelog
Changed
@@ -1,3 +1,15 @@ +libosmocore (1.12.1) unstable; urgency=medium + + Pau Espin Pedrol + * gsmtap_util: Fix fds not closed in ofd_wq_mode=0 + * vty: assert in optional param followed by optional-multi-choice param: Fix 2/2 + * gsmtap_util: Avoid sink_fd leak gsmtap_source_add_sinki() called multiple times + + Vadim Yanitskiy + * vty: assert in optional param followed by optional-multi-choice param: Reproduce 1/2 + + -- Pau Espin Pedrol <pespin@sysmocom.de> Thu, 18 Dec 2025 14:34:32 +0100 + libosmocore (1.12.0) unstable; urgency=medium Vadim Yanitskiy
View file
libosmocore_1.12.0.tar.xz/src/core/Makefile.am -> libosmocore_1.12.1.tar.xz/src/core/Makefile.am
Changed
@@ -1,7 +1,7 @@ # This is _NOT_ the library release version, it's an API version. # Please read chapter "Library interface versions" of the libtool documentation # before making any modifications: https://www.gnu.org/software/libtool/manual/html_node/Versioning.html -LIBVERSION=24:0:2 +LIBVERSION=24:1:2 AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) AM_CFLAGS = -Wall $(TALLOC_CFLAGS) $(PTHREAD_CFLAGS) $(LIBSCTP_CFLAGS) $(LIBMNL_CFLAGS) $(URING_CFLAGS)
View file
libosmocore_1.12.0.tar.xz/src/core/gsmtap_util.c -> libosmocore_1.12.1.tar.xz/src/core/gsmtap_util.c
Changed
@@ -435,7 +435,7 @@ /*! Add a local sink to an existing GSMTAP source and return fd * \paramin gti existing GSMTAP source - * \returns file descriptor of locally bound receive socket + * \returns file descriptor of locally bound receive socket; negative on error * * In case the GSMTAP socket is connected to a local destination * IP/port, this function creates a corresponding receiving socket @@ -450,7 +450,15 @@ */ int gsmtap_source_add_sink(struct gsmtap_inst *gti) { - return gti->sink_fd = gsmtap_source_add_sink_fd(gsmtap_inst_fd2(gti)); + int rc; + + if (gti->sink_fd >= 0) + return -EALREADY; + + rc = gsmtap_source_add_sink_fd(gsmtap_inst_fd2(gti)); + if (rc >= 0) + gti->sink_fd = rc; + return rc; } /* Registered in Osmo IO as a no-op to set the write callback. */ @@ -529,14 +537,15 @@ if (!gti) return; - if (gti->osmo_io_mode) { + if (gti->osmo_io_mode) osmo_iofd_free(gti->out); + else + close(gti->wq.bfd.fd); - if (gti->sink_fd != -1) { - close(gti->sink_fd); - gti->sink_fd = -1; - } + if (gti->sink_fd >= 0) { + close(gti->sink_fd); + gti->sink_fd = -1; } talloc_free(gti);
View file
libosmocore_1.12.0.tar.xz/src/vty/Makefile.am -> libosmocore_1.12.1.tar.xz/src/vty/Makefile.am
Changed
@@ -1,7 +1,7 @@ # This is _NOT_ the library release version, it's an API version. # Please read chapter "Library interface versions" of the libtool documentation # before making any modifications: https://www.gnu.org/software/libtool/manual/html_node/Versioning.html -LIBVERSION=13:3:0 +LIBVERSION=13:4:0 AM_CPPFLAGS = \ -I$(top_srcdir)/include \
View file
libosmocore_1.12.0.tar.xz/src/vty/command.c -> libosmocore_1.12.1.tar.xz/src/vty/command.c
Changed
@@ -443,6 +443,12 @@ while (isspace((int)*cp) && *cp != '\0') cp++; + /* Explicitly detect optional multi-choice braces like (one|two). */ + if (cp0 == '' && cp1 == '(') { + optional_brace = 1; + cp++; + } + if (*cp == '(') { multiple = 1; cp++;
View file
libosmocore_1.12.0.tar.xz/tests/vty/vty_transcript_test.c -> libosmocore_1.12.1.tar.xz/tests/vty/vty_transcript_test.c
Changed
@@ -207,6 +207,17 @@ return CMD_SUCCESS; } +DEFUN(multi3, multi3_cmd, + "multi3 (foo|bar) (one|two|three)", + "multi3 test command\n" "foo\nbar\n" "1\n2\n3\n") +{ + OSMO_ASSERT(argc > 0); + vty_out(vty, "ok argc=%d %s%s%s%s", argc, argv0, + argc > 1 ? " " : "", argc > 1 ? argv1 : "", + VTY_NEWLINE); + return CMD_SUCCESS; +} + #define X(f) (1 << f) enum { @@ -380,6 +391,7 @@ install_element_ve(&multi0_cmd); install_element_ve(&multi1_cmd); install_element_ve(&multi2_cmd); + install_element_ve(&multi3_cmd); install_element(CONFIG_NODE, &cfg_attr_test_cmd); install_node(&attr_test_node, NULL);
View file
libosmocore_1.12.0.tar.xz/tests/vty/vty_transcript_test.vty -> libosmocore_1.12.1.tar.xz/tests/vty/vty_transcript_test.vty
Changed
@@ -3,6 +3,7 @@ multi0 (one|two|three) multi1 (one|two|three) multi2 (one|two|three) + multi3 (foo|bar) (one|two|three) vty_transcript_test> multi0 ? one 1 @@ -67,6 +68,27 @@ vty_transcript_test> multi2 ok argc=0 +vty_transcript_test> multi3 ? + foo foo + bar bar + +vty_transcript_test> multi3 foo ? + one 1 + two 2 + three 3 + +vty_transcript_test> multi3 foo +ok argc=1 foo + +vty_transcript_test> multi3 bar +ok argc=1 bar + +vty_transcript_test> multi3 foo one +ok argc=2 foo one + +vty_transcript_test> multi3 bar three +ok argc=2 bar three + vty_transcript_test> multi0 thr ok argc=1 three @@ -76,6 +98,9 @@ vty_transcript_test> multi2 t % Ambiguous command. +vty_transcript_test> multi3 foo t +% Ambiguous command. + vty_transcript_test> single0 one ok argc=1 one
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
.