Project

General

Profile

Actions

Bug #2864

closed

OsmoMSC is crashing/asserting if IMSI length too long

Added by laforge over 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
A interface (general)
Target version:
-
Start date:
01/23/2018
Due date:
% Done:

20%

Resolution:
Spec Reference:

Description

When we send an ID RESPONSE with IMSI longer than 15 digits, OsmoMSC will crash/abort as follows:

Assert failed bcd_len <= sizeof(bcd_buf) gsup.c:494
backtrace() returned 25 addresses
/usr/local/stow/libosmocore/lib/libosmogsm.so.8(osmo_gsup_encode+0x1183) [0x7efd0bbf0163]

see attached pcap file.


Files


Checklist

  • add ttcn-3 testcase
  • fix actual bug by verifying length in MM before hitting GSUP
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)