Project

General

Profile

Bug #3389

osmo-sgsn: runtime error: null pointer in memcpy

Added by pespin 7 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/09/2018
Due date:
% Done:

0%

Estimated time:
Spec Reference:

Description

While running osmo-sgsn master today:

20180709131409837 DLINP <001d> /home/pespin/dev/sysmocom/git/libosmo-abis/src/input/ipa.c:56 127.0.0.1:4222 message received
20180709131409837 DGPRS <000e> /home/pespin/dev/sysmocom/git/osmo-sgsn/src/gprs/gprs_subscriber.c:715 SUBSCR(901700000015254) Received GSUP message OSMO_GSUP_MSGT_INSERT_DATA_REQUEST
20180709131409837 DGPRS <000e> /home/pespin/dev/sysmocom/git/osmo-sgsn/src/gprs/gprs_subscriber.c:364 SUBSCR(901700000015254) Will set PDP info, context id = 1, APN = 01 2a
/home/pespin/dev/sysmocom/git/osmo-sgsn/src/gprs/gprs_subscriber.c:377:3: runtime error: null pointer passed as argument 2, which is declared to never be null
20180709131409838 DGPRS <000e> /home/pespin/dev/sysmocom/git/osmo-sgsn/src/gprs/gprs_subscriber.c:817 SUBSCR(901700000015254) Updating subscriber data
20180709131409838 DMM <0002> /home/pespin/dev/sysmocom/git/osmo-sgsn/src/gprs/gprs_sgsn.c:728 MM(901700000015254/c7e21a7f) Subscriber data update

Affected line is in gprs_subscr_gsup_insert_data:

        memcpy(pdp_data->qos_subscribed, pdp_info->qos_enc, pdp_info->qos_enc_len);

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)