Project

General

Profile

Bug #3024

include/osmo-bts/l1sap.h/L1SAP_FN2CCCHBLOCK: possible overflow

Added by fixeria 3 months ago.

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

0%

Spec Reference:

Description

Have a look at the:

#define L1SAP_FN2CCCHBLOCK(fn) ((fn % 51) / 5 - 1)

if (fn < 5), we may get (0 / 5 - 1) (0 - 1) -1.

Is this expected?

Also available in: Atom PDF