Bug 2172

Summary: Out-of-bounds array access
Product: ns-3 Reporter: ycqzvomd
Component: lteAssignee: Biljana Bojović <bbojovic>
Status: RESOLVED WONTFIX    
Severity: critical CC: bbojovic, mmiozzo, natale.patriciello, ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: PC   
OS: Linux   
Attachments: Patch to modify NS_ASSERT conditions

Description ycqzvomd 2015-08-26 09:05:45 UTC
Created attachment 2128 [details]
Patch to modify NS_ASSERT conditions

GetTbSizeFromMcs is called with nprb = 0 in some tests, which results in out-of-bounds array access.

Attached patch modifies assert to prevent such bugs and makes them easy to detect. This bug was detected with AddressSanitizer, I don't know why it happens or how to fix it.

After applying the patch, two tests CRASH:
    lte-fdtbfq-ff-mac-scheduler
    lte-frequency-reuse

I have not found any other bugs using AddressSanitizer.
Comment 1 natale.patriciello 2018-03-07 05:21:28 UTC
The patch is not doing anything useful, I am sorry. If you think this needs a reopen, please do it and explain what is the sense to merge a patch that, from 0 crashes, open the doors to 2 crashes.