Project

General

Profile

Actions

Bug #4996

closed

gprs_ns2.c:353:40: runtime error: division by zero

Added by laforge about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
libosmogb
Target version:
-
Start date:
01/30/2021
Due date:
% Done:

100%

Spec Reference:

Description

This can happen if an application is sending NS-UNITDATA before the NS stack is fully set up (i.e. NS-RESET/UNBLOCK/...)

        uint32_t mod = (bvci + load_selector) % nse->nsvc_count;

I guess that nse->nsvc_count == 0 at that point.

Actions #1

Updated by lynxis about 3 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 80
Actions #2

Updated by laforge about 3 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 80 to 100

patch merged.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)