Bug 2172 - Out-of-bounds array access
Out-of-bounds array access
Status: RESOLVED WONTFIX
Product: ns-3
Classification: Unclassified
Component: lte
ns-3-dev
PC Linux
: P5 critical
Assigned To: Biljana Bojović
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-26 09:05 UTC by ycqzvomd
Modified: 2018-03-07 05:21 UTC (History)
4 users (show)

See Also:


Attachments
Patch to modify NS_ASSERT conditions (514 bytes, patch)
2015-08-26 09:05 UTC, ycqzvomd
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.