pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcap/+/39773?usp=email )
Change subject: pcap-server: Validate rolling over file was successful before writing to it
......................................................................
pcap-server: Validate rolling over file was successful before writing to it
If reopening the file fails (eg. disk full), we'd end up with a null
conn->wrf pointer there which would segfault in
osmo_pcap_wr_file_write_msgb() immediatelly below.
Change-Id: I103d3f66bf40c68db1a20a987bc984989c91b447
---
M src/osmo_server_core.c
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/73/39773/1
diff --git a/src/osmo_server_core.c b/src/osmo_server_core.c
index cebc70a..77d916a 100644
--- a/src/osmo_server_core.c
+++ b/src/osmo_server_core.c
@@ -543,6 +543,13 @@
if (!check_restart_pcap_max_size(conn, msgb_length(msg)))
check_restart_pcap_localtime(conn, now);
+ /* Since the checks above may have closed and re-opened (and could have
+ * failed), check again whether new wrf is ready... */
+ if (!conn->wrf) {
+ LOGP(DSERVER, LOGL_ERROR, "No file is open. close connection.\n");
+ return -1;
+ }
+
talloc_steal(conn->wrf, msg);
rc = osmo_pcap_wr_file_write_msgb(conn->wrf, msg);
if (rc < 0) {
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcap/+/39773?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-Change-Id: I103d3f66bf40c68db1a20a987bc984989c91b447
Gerrit-Change-Number: 39773
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Attention is currently required from: Hoernchen, laforge.
Hello Jenkins Builder, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39441?usp=email
to look at the new patch set (#6).
The following approvals got outdated and were removed:
Verified-1 by Jenkins Builder
Change subject: tame the linter
......................................................................
tame the linter
Change-Id: I84f8637b47047bb9b8c217b0869a486ceee7243f
---
A .checkpatch.conf
1 file changed, 18 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/41/39441/6
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39441?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I84f8637b47047bb9b8c217b0869a486ceee7243f
Gerrit-Change-Number: 39441
Gerrit-PatchSet: 6
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Attention is currently required from: Hoernchen.
Hello Jenkins Builder, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39443?usp=email
to look at the new patch set (#5).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
The change is no longer submittable: Verified is unsatisfied now.
Change subject: strict prototypes
......................................................................
strict prototypes
Change-Id: Ic2915a9182dc64ac1e3fba7da18a71ff9fe91944
---
M sysmoOCTSIM/command.c
M sysmoOCTSIM/gcc/Makefile
M sysmoOCTSIM/hpl/port/hpl_gpio_base.h
M sysmoOCTSIM/main.c
4 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/43/39443/5
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39443?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: Ic2915a9182dc64ac1e3fba7da18a71ff9fe91944
Gerrit-Change-Number: 39443
Gerrit-PatchSet: 5
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Attention is currently required from: Hoernchen, laforge.
Hello Jenkins Builder, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39441?usp=email
to look at the new patch set (#5).
The following approvals got outdated and were removed:
Code-Review+1 by laforge, Verified+1 by Jenkins Builder
Change subject: tame the linter
......................................................................
tame the linter
Change-Id: I84f8637b47047bb9b8c217b0869a486ceee7243f
---
A .checkpatch.conf
1 file changed, 18 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/41/39441/5
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39441?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I84f8637b47047bb9b8c217b0869a486ceee7243f
Gerrit-Change-Number: 39441
Gerrit-PatchSet: 5
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Attention is currently required from: Hoernchen.
Hello Jenkins Builder, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39442?usp=email
to look at the new patch set (#5).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
The change is no longer submittable: Verified is unsatisfied now.
Change subject: fix up usb version string, not 0 terminated
......................................................................
fix up usb version string, not 0 terminated
Change-Id: I198f0a55c5c5853ea58f20ad4124a909952a3074
---
M sysmoOCTSIM/main.c
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/42/39442/5
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39442?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I198f0a55c5c5853ea58f20ad4124a909952a3074
Gerrit-Change-Number: 39442
Gerrit-PatchSet: 5
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Attention is currently required from: Hoernchen.
Hello Jenkins Builder, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39444?usp=email
to look at the new patch set (#5).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
The change is no longer submittable: Verified is unsatisfied now.
Change subject: ccid dev: fix sizeof abuse
......................................................................
ccid dev: fix sizeof abuse
Change-Id: Ia96247af6f2a887d3c894a65983e795b9e5a7cbe
---
M ccid_common/ccid_device.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/44/39444/5
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39444?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: Ia96247af6f2a887d3c894a65983e795b9e5a7cbe
Gerrit-Change-Number: 39444
Gerrit-PatchSet: 5
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Attention is currently required from: Hoernchen.
Hello Jenkins Builder, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39446?usp=email
to look at the new patch set (#7).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
The change is no longer submittable: Verified is unsatisfied now.
Change subject: usb desc: use per-interface dev class instead of CDC
......................................................................
usb desc: use per-interface dev class instead of CDC
Change-Id: I9d4f88b973f0c16d2c1241343d416496b35019a0
---
M sysmoOCTSIM/usb_descriptors.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/46/39446/7
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39446?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I9d4f88b973f0c16d2c1241343d416496b35019a0
Gerrit-Change-Number: 39446
Gerrit-PatchSet: 7
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>