Bugzilla – Bug 2519
m_windowOffsetsMap.end () dereference in TraceFadingLossModel::DoCalcRxPowerSpectralDensity
Last modified: 2016-11-07 08:54:35 UTC
Created attachment 2609 [details] Proposed patch If m_windowOffsetsMap.find (mobilityPair) returns m_windowOffsetsMap.end (), it is stored into itOff. Later itOff is dereferenced to calculate index. To avoid dereferencing m_windowOffsetsMap.end (), itOff should be updated with a reference to newely inserted element.
Created attachment 2610 [details] Proposed patch forgot ".first"
Hi Alexander, thank you very much for reporting the bug and providing the patch for it. I have checked it and yes, ifOff needs to be initialized in both branches "if" and "else", since it is used later in the code. I am fine with the patch. Can you please commit/push it to ns-3-dev? Biljana
Pushed in changeset 6ce2f4e01995
(In reply to Alexander Krotov from comment #3) > Pushed in changeset 6ce2f4e01995 Thanks!
*** Bug 2140 has been marked as a duplicate of this bug. ***